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!

The OpenTelemetry Certified Associate (OTCA) Exam

What’s this OTCA exam? The Linux Foundation offers the OpenTelemetry Certified Associate (OTCA) credential to ...

From Manual to Agentic: Level Up Your SOC at Cisco Live

Welcome to the Era of the Agentic SOC   Are you tired of being a manual alert responder? The security ...

Splunk Classroom Chronicles: Training Tales and Testimonials (Episode 4)

Welcome back to Splunk Classroom Chronicles, our ongoing series where we shine a light on what really happens ...