Splunk Search

Subquery to get rows

Ravman
New Member

Hi
What is the syntax using subquery to get all rows having the same correlation id that of an inbound call with a given account t id.

basically Get all rows where correlationId = ( correlationId where acct id = myAcctId)

Tags (1)
0 Karma

Ayn
Legend
[search <some search that gets relevant events> acctid=yourAcctId | dedup correlationId | fields correlationId]

This will expand into a list looking something like

((correlationId = "someid") OR (correlationId = "someotherid") OR (...) ... )

Where the ID's in the list are, of course, the ones found in the subsearch that looked for the correlation ID's related to your account.

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...