[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: |
|
||||||||
| 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 Regards, |