Splunk Search

Querying two indexes with same field name

sriramsb
New Member

I have two indexes indexA and indexB . IndexA contains userID and Salary , IndexB contains userID, Name i want to print a dash board with Name , salary ( matching userIDs from both indexes

Tags (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

There are a number of ways to do that, but the simplest is

index=indexA OR index=indexB 
| stats values(*) by userID
| table Name, Salary
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

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

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