Splunk Search

2 index join not working

Laxman24
Explorer

Hi All,

I need some advice or help,

so I have 2 index I'd like to join but it seems not working as I expected :

index a

nameinfo
person1aa-bb-cc
person2bb-cc-dd
person3cc-dd-ee
thing1dd-ee-ff

 

index b

identifiernote
aabbccthis is good
bbccddthis is bad
ccddeethis is good

 

Id like to make the result below

nameinfonote
person1aa-bb-ccthis is good
person2bb-cc-ddthis is bad
person3cc-dd-eethis is good

 

What I currently have  is:

index=a 
| search name=person*
| eval identifier=replace(info, "-","")
| join type=outer identifier [search index=b]
| table name info note

 

But I still find the result "note" field is empty/null

did I miss something in this search  ?

Labels (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Try without using join

index=a OR index=b
| eval identifier=if(isnull(identifier),replace(info, "-",""),identifier)
| stats values(*) as * by identifier
| search name=person*
| table name info note
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...