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!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...