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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...