Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-21857

Mongodb output log as json?

    • Type: Icon: Question Question
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.7
    • Component/s: 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 Unassigned
            Reporter:
            abcfy2 Feng Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: