Dashboards & Visualizations

Is it possible to map a source and destination IP on a single cluster map?

JackM15
Engager

Hello,

I am trying to use one cluster map to visualize the locations of a user's source and destination IPs for Duo logs. Currently, I have two separate cluster maps for each.

Source IP Address Query:

index="duo" extracted_eventtype=authentication_v2 user.name="$user.name$" access_device.ip!="NULL"
| iplocation access_device.ip
| geostats count by City

 

Destination IP Address Query:

index="duo" extracted_eventtype=authentication_v2 user.name="$user.name$" auth_device.ip!="NULL"
| iplocation auth_device.ip
| geostats count by City

 

I'm somewhat new to visualizations and dashboarding, and was hoping for some assistance on writing a combined query that would display both source and destination IPs on a cluster map.

Labels (3)
0 Karma
1 Solution

bowesmana
SplunkTrust
SplunkTrust

I'm assuming that the src and destination are in the same event, so geostats will not expand multivalue fields, so you will first have to duplicate the events and then do the geostats, like this

index="duo" extracted_eventtype=authentication_v2 user.name="$user.name$" (access_device.ip!="NULL" OR auth_device.ip!="NULL")
| eval ip=mvappend('access_device.ip', 'auth_device.ip')
| fields ip
| mvexpand ip
| iplocation ip
| geostats count by City

 

View solution in original post

0 Karma

bowesmana
SplunkTrust
SplunkTrust

I'm assuming that the src and destination are in the same event, so geostats will not expand multivalue fields, so you will first have to duplicate the events and then do the geostats, like this

index="duo" extracted_eventtype=authentication_v2 user.name="$user.name$" (access_device.ip!="NULL" OR auth_device.ip!="NULL")
| eval ip=mvappend('access_device.ip', 'auth_device.ip')
| fields ip
| mvexpand ip
| iplocation ip
| geostats count by City

 

0 Karma

JackM15
Engager

Thanks so much! This worked for me. Not super related, but do you know if it's possible to display the IP addresses instead of longitude and latitude on the cluster map?

0 Karma

bowesmana
SplunkTrust
SplunkTrust

Not really on a cluster map after geostats, because you can't split by City and IP. However, you can use the Maps+ app, which has way way more options for customisation

https://splunkbase.splunk.com/app/3124

You wouldn't then use geostats, but stats count by City, ip and then in the maps+ app you can configure all sorts of things, such as map layers, HTML tooltips and so on.

The app has a number of good examples of how to use it.

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...