Splunk Search

Output of inner query is returned in a single line

kavyadekkata
Explorer

Hi Friends,

Apologies for my ignorance, but I have a problem formatting the output of the result from a sub-query.

index=* "[92929292]"
| stats values(CALLGUID) as CALLGUID by _time
_ | dedup CALLGUID| mvexpand CALLGUID
| join CALLGUID [ search index=* CALLGUID=*
| rex "D](:|\s-)(?[^,|.]+)" | stats count by CALLGUID error
| stats list(error) list(count) as count by CALLGUID]
| fields _time,CALLGUID,errors,count
_

I’m working on the above query and I get the results as attached as actualoutput.png and desired_output.png

Could anyone please suggest how to make it work 😞

alt text
alt text

0 Karma
Get Updates on the Splunk Community!

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...

Application management with Targeted Application Install for Victoria Experience

Experience a new era of flexibility in managing your Splunk Cloud Platform apps! With Targeted Application ...

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...