All Apps and Add-ons
Highlighted

JSON syntax highlight reorders data

Explorer

We submit JSON log events to splunk enterprise.

When viewing the log in the raw text mode in splunk everything is fine and in the order data is generated.

But in the syntax highlighted mode it switches the order of the items in the array, specifically in alphabetical order.

Is there a way to turn this off?

Where is there documentation about how Splunk does this?

Tags (2)
Highlighted

Re: JSON syntax highlight reorders data

Explorer

One way around this we've found is to table out the field that contains the array, ie

| table time host myarray{}

0 Karma