Splunk Search

How to combine Eventtype Search and lookup data into one table?

hgoyal
Engager

Hi Everyone,

I have an search query and a lookup.

Search query gives some filenames and their time of creation and in my lookup which is from external team contains the same filename and transfer time of that file in our system.

First search works on eventtype-> Filename and Time of creation are the table fields
Second lookup data fields-> Filename and Transfer time

I want to combine the data of eventype search and lookup and display into one single table with combined fields like 

TIme of creation Filename Transfer Time 

How to achieve this I am pretty stuck on this issue

Labels (2)
Tags (2)
0 Karma

hgoyal
Engager

Hi @gcusello 

Thanks for the solution I used join too it is working 


0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @hgoyal,

you have to check if the filename is in the same format between main search and lookup, if yes, you can run a search like this:

index=your_index
| lookup your_lookup.csv Filename OUTPUT Transfer_Time
| table Creation_Time Filename Transfer_Time 

Ciao.

Giuseppe

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...