Security

What is the best and reliable way to do the field extraction in Splunk and data ingested is in json format?

manjunath_n
Engager

Hello,

We are in need of field extractions in Splunk.

What is the best and reliable way to do the field extraction in Splunk and data ingested is in json format. 

Please let us know if there is any way to do the extractions during ingestion so that it gets auto extracted and by searching index=sample sourcetype=json we could get them as fields under the interesting fields.

Can this be done by editing the props.conf file? Please do provide some examples which would of great help.

Thanks.

 

 

0 Karma

PickleRick
SplunkTrust
SplunkTrust

There are at least three different ways to handle json data.

One is indexed extraction https://docs.splunk.com/Documentation/SplunkCloud/8.2.2112/Data/Extractfieldsfromfileswithstructured...

Another one is automatic json extraction in search-time (KV_MODE=json)

And yet another one is manual use of the spath command.

Every one of them has its pros and cons so you can't, without knowing additional constraints, tell which one is "the best and reliable".

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...