mtools icon indicating copy to clipboard operation
mtools copied to clipboard

Add support for more structured mlogfilter JSON output

Open stennie opened this issue 5 years ago • 1 comments

mlogfilter --json output currently outputs a limited set of extracted fields with an array of split_tokens (using space as a delimiter) that do not have context.

More complete output of parsed log fields would be useful to convert logs for manipulation with jq or importing into other systems.

stennie avatar Sep 18 '19 14:09 stennie

The output should align with MongoDB 4.4+ structured logging (aka logv2).

This would allow legacy logs to be roughly converted to the logv2 format for manipulation with newer tooling, although compatibility will generally be limited to field names rather than values.

stennie avatar Jun 15 '20 23:06 stennie