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!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...