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.

 

 

Labels (1)
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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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