Splunk Search

Use the result of one query as input to the next query

Deepz2612
Explorer

Hi @niketn 

Greetings..

I have a requirement where..

My first query is as below:

index = <my_index> eventtype=" " | table field1

And the values of my first query has to be used in the search of my second query

index=<my_index> source= " " and field1 values..

I tried using join it doesnt seem to help.

 

Please advice

Labels (2)
0 Karma

aasabatini
Motivator

hi 
use fields comand not table,  also if the result of the first search are less number of events you can use a subsearch.

index=<my_index>  [search index = <my_index> eventtype=" " |  fields field1]

“The answer is out there, Neo, and it’s looking for you, and it will find you if you want it to.”
Get Updates on the Splunk Community!

Splunk App for Anomaly Detection End of Life Announcment

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...