Splunk Search

Can't filter by Country even though there is count

bayman
Path Finder

When I run the following search, I get a list of countries and their count.

eventtype=cisco-firewall src_ip="*" dest_port="445" | iplocation src_ip | stats count by Country

But when I click on one of the countries and click "View Events" it runs the new search below but returns "No results found" even though I know the Country has events from the first search based on the count. What am I doing wrong?

eventtype=cisco-firewall src_ip="*" dest_port="445"  Country=Canada| iplocation src_ip 
0 Karma
1 Solution

bayman
Path Finder
eventtype=cisco-firewall src_ip="*" dest_port="445" | iplocation src_ip | search Country=Canada

View solution in original post

0 Karma

bayman
Path Finder
eventtype=cisco-firewall src_ip="*" dest_port="445" | iplocation src_ip | search Country=Canada
0 Karma

MuS
Legend

Isn't the field Country only available after the iplocation command?

0 Karma

bayman
Path Finder

I think there is a bug in the Cisco Firewall app for "View Events"

Changing the search to this works as you suggested:

eventtype=cisco-firewall src_ip="*" dest_port="445" | iplocation src_ip | search Country=Canada
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!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...