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
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...