- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
iplocation when outputting in command stats
nalia_v
Loves-to-Learn Everything
04-15-2021
04:22 AM
Hello everyone,
Someone may already be doing the output of grouped events with the definition of location by ip.
How not to lose location data when grouping events ?
In my request spl it is
| search......
|stats count(tunnelid) as sessioncount, values(StartTime) as StartTime, values(tunnelid) as tunnelid, values(tunnelip) as tunnelip, values(remip) as remip, values(vendor_action) as vendor_action by user
| iplocation remip
Of course, when displaying one type, the location IP is displayed.
How to display data on the location of each IP in grouped events ?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

richgalloway

SplunkTrust
04-15-2021
05:53 AM
Apparently, the iplocation command can't handle a multi-value field. Try putting iplocation before stats.
| search......
| iplocation remip
| stats count(tunnelid) as sessioncount, values(*) as * by user
---
If this reply helps you, Karma would be appreciated.
If this reply helps you, Karma would be appreciated.
