Closed SteveH-US closed 2 years ago
Hi @SteveH-US ,
Currently only the historical log format is supported (4.2 and earlier). If your version of mtools doesn't understand the log format provided it should report an error like:
Error:
does not appear to be a supported MongoDB log file format
Support for structured logging (https://github.com/rueckstiess/mtools/issues/806) is on the todo list but proper support for all mtools filter options requires some testing & round tuits.
There are some alternative approaches depending on what you are looking for:
jq
.Perhaps we could organise a sprint at or around MongoDB World. Will you be attending this year?
Cheers, Stennie
Hi Stennie,
Adding statements like this to the docs is what I'm asking for.
As you whether 'mtools' processes structured logs, I still think it is useful to have all the mtools features, from the graphing of logs to the reporting and query usages is the real value add here. IMHO, the ability to parse the logs on its own isn't remarkable.
I'm attending MongoDB World. See you there.
Regards, Steve
Hey guys, I was looking into support for 4.4 log format, and if you would be organising a sprint on Mongo World, I'd be interested in joining. Let me know. Regards, Nikola
Please list what versions of MongoDB are support by this tool.
There have been some changes to the log format in v4.2 and in big changes for v4.4 (with structured logging). It is not clear from the changes to mtools what version of MongoDB logs are supported.
Expected behavior
Actual/current behavior
Additional context