Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14325

jq log processing examples should be simplified

      Description

      At https://docs.mongodb.com/manual/reference/log-messages/ there are a lot of examples with jq including the pattern . | select(...) for example:

      jq '. | select(.c!="REPL")' /var/log/mongodb/mongod.log 

      However, it appears that this isn't necessary and the following has identical behaviour:

      jq 'select(.c!="REPL")' /var/log/mongodb/mongod.log 

      I'm no jq expert, so probably good to validate all example to make sure there's no edge case that does require the {{. | }} option.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            kenneth.dyer@mongodb.com Kenneth Dyer
            Reporter:
            nicholas.cottrell@mongodb.com Nic Cottrell
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              10 weeks, 1 day ago