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!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...