Splunk Search

SPL: Searching the Network Traffic for anything that is not (!=) United States

itsmevic
Communicator

Hello fellow Splunkers ( :

Does anyone have some SPL laying around that shows network traffic that is NOT United States based both source and destination standpoints.  I'd like to be able to monitor any of this type of traffic on my network via Splunk.
0 Karma
1 Solution

itsmevic
Communicator

index=* sourcetype=* action="*"
|stats count by host,src_ip,dest_ip,port
|where src_ip!="United States"

OR

Index=* sourcetype=* action="*"
| stats count by src_ip dest_ip
|iplocation src_ip dest_ip
| where Country != "United States"
|geostats latfield=lat longfield=lon count by Country

View solution in original post

0 Karma

itsmevic
Communicator

index=* sourcetype=* action="*"
|stats count by host,src_ip,dest_ip,port
|where src_ip!="United States"

OR

Index=* sourcetype=* action="*"
| stats count by src_ip dest_ip
|iplocation src_ip dest_ip
| where Country != "United States"
|geostats latfield=lat longfield=lon count by Country

0 Karma

to4kawa
Ultra Champion

will you provide sample log?
Is country identification (maxmind geolite2 ) a problem?
Do you update country data?

0 Karma
Get Updates on the Splunk Community!

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Get Inspired! We’ve Got Validation that Your Hard Work is Paying Off

We love our Splunk Community and want you to feel inspired by all your hard work! Eric Fusilero, our VP of ...