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 Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...