Getting Data In

Reading IP addresses from a JSON file, and manage the IP addresses as whitelist

Aina
New Member

Hi

I want to read IP addresses from a Json file and manage the addresses that was read as a whitelist.

0 Karma

somesoni2
Revered Legend

Whitelist where/what?

0 Karma

alemarzu
Motivator

Hi @Aina

For field extractions on json data use spath command: http://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/Spath

Export your fields of interest in CSV format (IPs in this case) with outputlookup command: http://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/Outputlookup

You can then load that CSV into your query and use it like a whitelist with this commands, lookup, inputlookup: http://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/Inputlookup

If this is not the help you were looking for please elaborate your question so that I can help you.

KR.

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