Splunk Search

How to extract data of JSON in one row?

jhonatancuartas
New Member

I have this JSON, and I want extrac the value when the name is "ca-channel" and value when name is "Ca-Request-Id" but this data in one row, for example:

channel   |        requestId
    w          |       000001707ce0ca4c-58e1e56

alt text

0 Karma

maityayan1996
Path Finder

At first you just extract the fields from the json format of logs. Then try to filter the portions .
Please follow link to extract the fields :
https://answers.splunk.com/answers/679950/how-to-extract-fields-if-the-event-is-in-json-form.html

0 Karma

to4kawa
Ultra Champion
0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...