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

Mongodb output log as json?

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 3.0.7
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: