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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...