[SERVER-21857] Mongodb output log as json? Created: 11/Dec/15  Updated: 11/Dec/15  Resolved: 11/Dec/15

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.0.7
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Feng Yu Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-17357 Add flag to enable logging in JSON fo... Closed
Participants:

 Description   

I want to use ``logstash`` to parse and collect mongodb logs.

But I think it's hard to use ``grok`` regex pattern to parse the logs.

Is there any way to let mongodb output logs as json? Or other better grok pattern? The logstash built-in mongodb grok pattern does not match all logs(https://github.com/logstash-plugins/logstash-patterns-core/blob/master/patterns/mongodb).



 Comments   
Comment by Ramon Fernandez Marina [ 11/Dec/15 ]

MongoDB currently doesn't support JSON logs; this feature has been requested in SERVER-17357, so I'm resolving this ticket as a duplicate. Feel free to vote for SERVER-17357 and watch it for updates.

Regards,
Ramón.

Generated at Thu Feb 08 03:58:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.