Reading Mongod log in command prompt

Reading mongod log file in command prompt. Navigate to the log file location and type {TYPE log-file-name}

type 1.log

If the log file is quite big and you want to read the log file in batches use pipe operator with more tag

type 1.log | more


Leave a Reply

Your email address will not be published.