- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to create a report that shows the number of events coming from a source IP address and include the iplocation data elements, City, State, Country?
I want to see on a daily basis, where traffic is coming from, something like below.
SourceIP Event Count City State Country
1.1.1.1. 24 Minneapolis MN USA
2.2.2.2 20 Anqing Anhui China
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sourcetype=your source | iplocation SourceIP | stats count by SourceIP, City, Region, Country
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

You should use the order from my answer, gives you the same result with way fewer invocations of iplocation
.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Something like this?
your base search | stats count as "Event Count" by SourceIP | iplocation SourceIP
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

There is no field State, it's called Region.
That shouldn't stop it all from working though... check if you have the lat and lon fields after calling the iplocation command for your ip field.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm aware of the private address ranges and I'm excluding them from what I'm trying to do. It appears that I can't insert '|Table City, State, Country' with this sort of report.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Not all IP addresses have known location approximations, especially private ones. Make sure you're not suffering from that.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried that and I don't get any IPLocation data to add to the report.
