All Apps and Add-ons

Search attacks from one country

Jaymaree
New Member

Hi fellows,

Is there a way to search for attacks from one particular country? I know there are pie charts available in the Overview page, but when I click on a country it won't show me the results of the chosen country.

I hope there is sort of query out there 🙂

Thanks in advance.

0 Karma

lguinn2
Legend

If your data has an IP address that identifies the source, then you can use the iplocation command. Assuming that the field name of the IP address is "source_ip", then this command will work to show you the country.

a_search_that_identifies_potential_attacks
| iplocation source_ip
| table source_ip  Country  City  Region lat lon

By default, the command adds the additional fields to each event. Find out more in the docs at iplocation command You can filter the results by country or compute statistics with the returned fields, etc.

I am sure that the results aren't perfect, but I think that they are based on the free version of the MAXMIND database.

0 Karma

ppuru
Path Finder

As far as I understand, every country has a unique pattern of IP addresses allocated. hence the simplest and the easiest way is to perform a search based on source IP address (probably you can make use of regular expression here or wildcard*).
But in reality, often sophisticated attacks take place through many nodes (multiple hijacked computers across the globe), making it difficult to identify the source node or country in fact.

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

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

Ready to make your IT operations smarter and more efficient? Discover how to automate Splunk alerts with Red ...