Dashboards & Visualizations

Extract data from field

irisk
Engager

Hello, 

I receive an event of the following format:

{ log: { 'trace_id': 'abc', 'request_time': '2024-06-04 10:49:56.470140', 'log_type': 'DEBUG', 'message': 'hello'} }

Is it possible to extract from all the events I receive the inner JSON?

* each key in the inner json will be a column value but the me

Labels (2)
0 Karma
1 Solution

irisk
Engager

The problem was with the JSON because of the single quote instead of double quote, thanks for the help

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @irisk ,

did you tried to use INDEXED_EXTRACTIONS = json in your sourcetype?

Otherwise, did you already tried with spath command (https://docs.splunk.com/Documentation/Splunk/9.2.1/SearchReference/Spath )?

Ciao.

Giuseppe

0 Karma

irisk
Engager

The problem was with the JSON because of the single quote instead of double quote, thanks for the help

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @irisk ,

good for you, see next time!

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated 😉

0 Karma
Get Updates on the Splunk Community!

Splunk Classroom Chronicles: Training Tales and Testimonials (Episode 4)

Welcome back to Splunk Classroom Chronicles, our ongoing series where we shine a light on what really happens ...

From GPU to Application: Monitoring Cisco AI Infrastructure with Splunk Observability ...

AI workloads are different. They demand specialized infrastructure—powerful GPUs, enterprise-grade networking, ...

Application management with Targeted Application Install for Victoria Experience

  Experience a new era of flexibility in managing your Splunk Cloud Platform apps! With Targeted Application ...