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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Event Series: Splunk Observability Metrics Cost Optimization

Balancing Scale and Spend: Gaining Control Over High-Volume Metrics in Splunk Observability Cloud As ...

Kick the Tires Before You Commit: A Hands-On Tour of the Splunk Observability Cloud ...

Evaluating an enterprise observability platform usually goes like this: fill out a form, get a free trial with ...

Deep insights, no barriers: Splunk Observability Cloud Free Edition

As software delivery cycles continue to accelerate, observability shouldn’t be a luxury — it should be a ...