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!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...