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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

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 Certification at ...

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