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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...