How to Get Error Log

Dear.
is there anyway to get the mongo atlas error log, please.

Hello @Chuong_LA

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.

Regards,
Michael

I’m using M40 cluster, and can get Mongo logs, but i’d like to get just error log. So can i do that?

Hello.
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.

Regards,
Michael

Oh, thank you, I will try it

Hello @Chuong_LA

here are some lines to support by example:

mlogfilter 'mongod.log' --word exception
:arrow_right: filter all log lines with the string “exception”

mlogfilter ‘mongod.log’ --word exception --namespace <db.colloection> | mplotqueries`
:arrow_right: 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.

Regards,
Michael

Thanks a lot, i’ll try