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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...