Splunk Search

how to get items from a large json file?

cleal
New Member

Hi everyone

I´m new in splunk ,I need to get items from a json file but when i search in my file i see this in many parts and i don´t get all entities that i need.

How can i configure splunk to read json in only one event and so i can to get all entities ?

On image i have 3 events from same json file i need only one event and so get all entities from this json .

alt text

Tags (1)
0 Karma

woodcock
Esteemed Legend

The general answer is to add | spath to your search and go from there. That command has many options and you can call it multiple times with filtering and renaming steps between:

http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Spath

0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

 Prepare to elevate your security operations with the powerful upgrade to Splunk Enterprise Security 8.x! This ...

Get Early Access to AI Playbook Authoring: Apply for the Alpha Private Preview ...

Passionate about security automation? Apply now to our AI Playbook Authoring Alpha private preview ...

Reduce and Transform Your Firewall Data with Splunk Data Management

Managing high-volume firewall data has always been a challenge. Noisy events and verbose traffic logs often ...