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!

App Platform's 2025 Year in Review: A Year of Innovation, Growth, and Community

As we step into 2026, it’s the perfect moment to reflect on what an extraordinary year 2025 was for the Splunk ...

Operationalizing Entity Risk Score with Enterprise Security 8.3+

Overview Enterprise Security 8.3 introduces a powerful new feature called “Entity Risk Scoring” (ERS) for ...

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...