Splunk Search

Extract Fields with JSON with spath for Data model

longnh26
New Member

Now i very interested with command Spath of Splunk, can auto extract values JSON. But i can't extract it to field in index, sourcetype ?
Example: Raw json in field src_content:

index=web site=demo.com
| spath input=src_content
| table any_property_in_src_content

It will automatic extract fields, very good! But how save this fields ??
- Use Field alias, Calculated fields, Field extractions, Field transformations??
When data have many JSON form, property. If use regex then very hardcore 😞 not good same AUTOMACTIC of spath 😞
- This problem i think same in data model. Please help me solution.

End, i have a question, if a save raw json in field src_content in Datamodel, if query, search, report then i will use spath with src_content in datamodel. Then is its performance much slower?

Tags (2)
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...