Splunk Search

join retrieving wrong results

harinivgr
Explorer

| inputlookup fnms_copy1.csv
| eval MACaddress = replace(MACaddress,":", "")
| where MACaddress!=" "
| rename MACaddress as "Macaddress"
| join Macaddress
[search index="eventlog1" OR "Macaddress"]
I have a query like this, where MACaddress is the field which i want to match with another csv called eventlog. Eventlog csv is my base. I want to match Macaddress in both csv and return matching records. For example, if i have 10 records in eventlog csv and for corresponding Macaddress i have 1 matching record in fnms csv. Then it should return all the 10 records in eventlog and another condition is if i take a macaddress from eventlog but i donot find a match in fnms then the results should not be empty instead Macaddress from eventlog should be returned and corresponding columns in fnms can come empty. Can anyone help me with this?

Tags (2)
0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...