is there anyway to get the mongo atlas error log, please.
this might depend on which cluster you are running. You can find here if this feature is available and, if so, how to retrieve the logs.
I’m using M40 cluster, and can get Mongo logs, but i’d like to get just error log. So can i do that?
I am not aware that there is a single error-log - I like to pass this question to all readers.
I’d suggest to check out mlogfilter from the mtools package. This is a great filter tool for mongodb logs.
Oh, thank you, I will try it
here are some lines to support by example:
mlogfilter 'mongod.log' --word exception
filter all log lines with the string “exception”
mlogfilter ‘mongod.log’ --word exception --namespace <db.colloection> | mplotqueries`
filter all log lines with the string “exception” and visualize
The dots can be clicked and will show the actual log line.
There are plenty more options with mlogfilter and the mtools. So I like to encourage you to do further reading to get the maximum out of it as a start you basically only need to install the mtools and go with the fist example.
Thanks a lot, i’ll try