Splunk Search

How to parse data from JSON?

szrobag
Explorer

Hello,

Help me please. I have a REST API datasource get data ( JSON ) in main index something like this:

["user","domain\\user1","domain\\user2","domain\\user3"] ... 

I'd like to create a search which runs for all the users extracted from this JSON. 

How it is possible to use all this values in another search? 

thanks 

 

Labels (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Your example isn't properly formatted JSON - if your real events are properly formatted JSON, you could look at using spath to extract the values.

Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...