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!

Routing Data to Different Splunk Indexes in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. The OpenTelemetry project is the second largest ...

Getting Started with AIOps: Event Correlation Basics and Alert Storm Detection in ...

Getting Started with AIOps:Event Correlation Basics and Alert Storm Detection in Splunk IT Service ...

Register to Attend BSides SPL 2022 - It's all Happening October 18!

Join like-minded individuals for technical sessions on everything Splunk!  This is a community-led and run ...