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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...