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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...