Getting Data In

Minimizing or disabling json Syntax Highlighting automatically

noahdietrich
Explorer

Hello,

I have a dataset that consists of json data (using the _json sourcetype), where each event has about 30 fields and is correctly formatted and parsed by Splunk. When i do a basic search to view these events, each event shows the entire json event with syntax highlighting, taking up 30 lines of screen real-estate. I can manually minimize the json for a single event by clicking the [-] sign next to the event, or i can click "show as raw text" to fold up the event into one line, but i'd like this to be automatic for all my events.

Does anyone know if this is possible?

Essentially i can only see one event at a time, because the event shows the entire event's json (all 30 lines). I'm attaching a screenshot of what i mean here:

alt text

thank you
Noah

niketn
Legend

@noahdietrich, Pipe table command to your search

<yourCurrentSearch>
| table _time _raw

Also Event Viewer also has an option on top to change from default List view to Raw or Table view. This setting can also be applied by default using Role based UI Preference through ui-prefs.conf.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...