Splunk: How to Output Nested json as One Field

Splunk: How to Output Nested json as One Field

Adam Swan
Adam Swan Threat Hunting Engineering Lead linkedin icon Follow

Add to my AI research

Often, especially when providing context to analysts who are responsible for triaging alerts, it is useful to provide all of the context that a cloud provider nests in a big json blob as just a single field. You can use the splunk operation “spath” to accomplish this goal.

Note: if you have trouble manipulating the spath’d field, you may have success renaming it. For instance before eval statements.

index=azure AND "signinlogs" 
| spath properties.authenticationDetails{} 
| table properties.authenticationDetails{}
Join SOC Prime's Detection as Code platform to improve visibility into threats most relevant to your business. To help you get started and drive immediate value, book a meeting now with SOC Prime experts.

More Knowledge Bits Articles