Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please list what versions of MongoDB are support by this tool #863

Closed
SteveH-US opened this issue May 11, 2022 · 3 comments
Closed

Please list what versions of MongoDB are support by this tool #863

SteveH-US opened this issue May 11, 2022 · 3 comments

Comments

@SteveH-US
Copy link

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

@stennie
Copy link
Collaborator

stennie commented May 12, 2022

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: <some.log> does not appear to be a supported MongoDB log file format

Support for structured logging (#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:

  • Keyhole covers many common use cases.
  • Structured logs avoid the regex and special case assumptions baked into mtools at the moment and can be [parsed with standard JSON libraries and tools like jq.

Perhaps we could organise a sprint at or around MongoDB World. Will you be attending this year?

Cheers,
Stennie

@SteveH-US
Copy link
Author

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

@skijash
Copy link

skijash commented Jun 3, 2022

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

@stennie stennie closed this as completed in b5960e0 Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants