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

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Agent Mode Engaged! Enchaining Agentic Operations with Splunk AI Assistant 2.0

    Are you ready to transform how your team handles complex data requests? We invite you to our upcoming ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...