Splunk Search

How can I build a report using my query of IP addresses with the location information off of the lookup file?

dionrivera
Path Finder

Hi Team. I have a splunk query with a list of IP addressses(Client_IP). I also have a lookup file with the IP ranges(cidr_match) which also has a location(location) fields pinpointing a location of that IP address. How can I build a report using my query of IP addresses with the location information off of the lookup file?

Labels (1)
0 Karma

yuanliu
SplunkTrust
SplunkTrust

I suppose that you have set up the lookup with match_type CIDR; the lookup theoretically would give you lat-long.  Suppose the three columns in mylookup are: cidr, lat, and long. (You should have specified these parameters in the question and not waiting for others to speculate, which can easily be off base.)  Not sure what the real question is.  Do you get error?  Unexpected output?  This will be your basic listing.  Or are you asking for a specific report format?

| lookup mylookup cidr AS Client_IP
| table Client_IP lat long

 

0 Karma
Get Updates on the Splunk Community!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...