#Random
This is a place to discuss all things outside of Splunk, its products, and its use cases.

How do I extract key value from below Json Sample.

vreddy22
New Member

Hi All, I have a sample json event in Splunk as below.  Please help me to understand how I can parse custom_tags value from below . This may have multiple key value pairs in it

{

account:xyz,

eventdate:01/25/2024,

properties: {

            version:1.0,

             requestID: cvv,

              response: {"statusCode":"200", "result":"{\"run_id\":465253,\"custom_tags\":{\"jobname\":\"xyz\",\"domain\":\"bgg\"}}}

              time:12:55

}

}

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Use spath for json data

| spath input=properties
| spath input=response.result custom_tags
| spath input=custom_tags
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!

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 ...

Monitoring AI Agents with Splunk Observability Cloud

Let’s say I’m running a travel planning AI app in production. A user asks for three concise hotel options in ...

[Puzzles] Solve, Learn, Repeat: Tiling

This puzzle (first published here) is based on finding groups of tessellated tiles (inspired by floor tiles I ...