Getting Data In

How to write parsing configuration for json file?

vin02ptl
Explorer

My log contains multiple {} data structure and i want to get all json field inside extracted field in splunk . How to parse?

{ [-]
service: [ [-]
{ [-]
name: xxxxx

id: xxx
}

]

Filename: xxx

dest: xxx

created_at: xxxx
destination_port: null

source: xxx

username: zxx
}

0 Karma

arjunpkishore5
Motivator

props.conf with KV_MODE set to JSON should do the trick for you

Documentation on props.conf here - https://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf

0 Karma

vin02ptl
Explorer

i have tried, but fields are not reflecting under interesting field

0 Karma

arjunpkishore5
Motivator

what are the fields showing up in Interesting fields ?

0 Karma

vin02ptl
Explorer

Filename: xxx
dest: xxx
created_at: xxxx
destination_port: null
source: xxx
username: zxx

above fields are not populating and time and date field which i have added those only populating

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, ...