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!

Introducing the Splunk Community Dashboard Challenge!

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

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...