All Apps and Add-ons

JSON syntax highlight reorders data

cirkit1
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)

shou
Explorer

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

| table _time host my_array{}

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...