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!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...