-
Type: Task
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
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.