Reporting

How can we create a report based on country geoip?

seetharamanPr
New Member

Hi All,

I have to create a report where in if any IPs from the below countries hit our network, I should be able to see it.

• Iran
• Syria
• Yemen
• Romania
• Israel
• Russia
• China

Now I would like to know how to do this as I checked the geo ips of all these countries and there are too many. Is there an easier way of doing this? If so, kindly let me know the search string.

Regards
Pradeep

0 Karma

hardikJsheth
Motivator

Use geostats command.

For example if I get latitude and logntitude in my events, it can be plotted on geo map using following query:

  index=main | geostats latfield=notifications{}.geoCoordinate.latitude longfield=notifications{}.geoCoordinate.longitude count by DeviceID
0 Karma

jmallorquin
Builder

Hi,

Easy, use a lookup to list the countrys that you want to filter and then use the command iplocation with the field that you to identify the ip int he events

index sourcetype .... | iplocation yourfieldip | search [|inputlookup list_country.csv |table Country] | stats count by Country

Hope i help you

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...