Splunk Search

fetching data from lookup and index using join

sam4nik
Engager

Hi,

 

we have one inputlookup file X1.csv and one index=x2, we want to fetch alarm details from index for device name that is comman in inputlookup file.

in Inputlookup file we have device name, Location, Category, IP and same device name we have in index=x1 so could you please help how we can fetch the alarm details and we can perform alarm time details like which time we have received alarm for devices.

 

Thanks and Regards, 

Nikhil DUbey

4nikhildubey@gmail.com

nikhil.dubey@visitor.upm.com

7897777118

Labels (5)
0 Karma

manjunathmeti
Champion

hi @sam4nik,

Assuming device name field is same in both index and lookup. Try this. Sub search with inputlookup command filters the index results. Then lookup command adds additional fields from X1.csv to the results.

index=x1 [|inputlookup X1.csv | field device_field_name | format] | lookup X1.csv device_field_name OUTPUT Location, Category, IP

 

If this reply helps you, a like would be appreciated.

0 Karma
Get Updates on the Splunk Community!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...