Hi there,
maybe a bit of an obvious question but can't find the answer.
I am trying to extract Server Status information from a mongodb instance to be fed it into Splunk.
At the moment I am using the following script:
mongo ... --quiet --eval "printjsononeline(db.runCommand({ serverStatus: 1 }))"
Splunk Forwarder is having issues to parse the output due to data types included in the resulting document, i.e:
"uptimeMillis" : NumberLong(522262234)
I was wondering what's the best way to convert it to MongoDB Strict format so that Splunk without having to use mongoexport or the REST API.
Thanks in advance.
Angel