Splunk: How to Output Nested json as One Field

[post-views]
November 25, 2024 · 1 min read
Splunk: How to Output Nested json as One Field

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{}

Was this article helpful?

Like and share it with your peers.
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.

Related Posts