Mongodb output log as json?

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.0.7
    • Component/s: None
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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).

              Assignee:
              Unassigned
              Reporter:
              Feng Yu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: