Splunk Search

Can I use lookup instead of join?

LxSenpai
Explorer

Hello guys
So I have a table where there are Index and Role. In another table, there is Index and Description. So what I am trying to output is something like this below:-

Role | Index | Description
1       | a_2 | World says hello back.
          |a_3| Hello 
2      |a_4| WOW

Currently using join the index fields are being joined. But is there a way to do the joining without Join but only lookup?

|mvexpand Indexes
|fields Index2, Indexes, Role

|join type=outer Indexes [ inputlookup index_info_lu | rename Index as Indexes]  << here>>

| stats list(Indexes) as Indexes,list(Description) as Description by Role
0 Karma
1 Solution

somesoni2
Revered Legend

Give this a try

your base search
|mvexpand Indexes
|fields Indexes, Role
| lookup index_info_lu Index as Indexes OUTPUT Description
| stats list(Indexes) as Indexes,list(Description) as Description by Role

View solution in original post

somesoni2
Revered Legend

Give this a try

your base search
|mvexpand Indexes
|fields Indexes, Role
| lookup index_info_lu Index as Indexes OUTPUT Description
| stats list(Indexes) as Indexes,list(Description) as Description by Role

LxSenpai
Explorer

Thanks alot

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...