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

Mongodb output log as json?

    XMLWordPrintable

Details

    • Question
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 3.0.7
    • None
    • None
    • None

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: