Splunk Search

How to lookup and match fields across sources?

krisalexroberts
New Member

Hello,

I have two sources:

1: Device, SiteName, Long, Lat
2: Device, Clients (Number of current clients)

I wish to generate a heat map based on number of users in locations, but cannot figure out how to create a search with one concise table, such as:

Device, SiteName, Clients, Long, Lat

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

This should get you headed in the right direction.

(index=foo source=one) OR (index=bar source=two) | stats list(SiteName) as SiteName, list(Long) as Long, list(Lat) as Lat, list(Clients) as Clients by Device
---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

This should get you headed in the right direction.

(index=foo source=one) OR (index=bar source=two) | stats list(SiteName) as SiteName, list(Long) as Long, list(Lat) as Lat, list(Clients) as Clients by Device
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...