- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CyberWolf
Path Finder
10-23-2024
05:14 AM
I'm using cmd |iplocation src, and the results produce results for the City. Next i want to compare each City and report when results is different.
Example when result for a City is Miami and next hour or so in the same field for the City is Boston.
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ITWhisperer

SplunkTrust
10-23-2024
06:09 AM
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CyberWolf
Path Finder
10-24-2024
05:08 AM
Thanks Everyone for fast response!
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

gcusello

SplunkTrust
10-23-2024
06:17 AM
Hi @CyberWolf ,
I suppose that you want to check this for each Account_name, you could try with stats:
<your_search>
| iplocation src
| stats dc(city) AS city_count BY Account_name
| where city_count>1
use the Account_name field you have in your logs.
Ciao.
Giuseppe
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ITWhisperer

SplunkTrust
10-23-2024
06:09 AM
| streamstats latest(city) as previous current=f
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CyberWolf
Path Finder
10-23-2024
06:28 AM
It worked! thank you!
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

richgalloway

SplunkTrust
10-23-2024
10:24 AM
If your problem is resolved, then please click the "Accept as Solution" button to help future readers.
---
If this reply helps you, Karma would be appreciated.
If this reply helps you, Karma would be appreciated.
