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!

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

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...