Dashboards & Visualizations

Search Query to display the RID separately

aditsss
Motivator

Hi Everyone,

I have one requirement. I am showing my RID with their source and their counts as of now its coming like this:

My search query:

index=ABCns=XYZ app_name=DF "ARC EVENT RECEIVED FROM SOURCE"| rex "RID:(?<RID>(\w+-){4}\w+)-(?<sourceagent>\w+-\w+)"
| stats count(RID) as count, values(RID) as RID by sourceagent| rename sourceagent as "Source"|fields  Source count

what I want now is like for Source of1-team_b the count is 5 and all the RID's are coming in one block.

RID Source count

8730e34b-d619-40c9-9f1b-6b39f534daeaof1-team_a1
07cefd49-ec3f-44b4-b313-24eb486dda02
5b23febe-1817-405d-8e7f-c4388feb9fbc
9cc7154e-11a2-43e1-a970-590d359fbadd
c09b64eb-45c3-4fcb-9deb-81faa3d5c98b
f56bce02-750d-451c-a341-4769d7518f2c
of1-team_b5

 

Now I want to show only and the count so I want each RID should come separately like this:

RID Source count

8730e34b-d619-40c9-9f1b-6b39f534daeaof1-team_a1
07cefd49-ec3f-44b4-b313-24eb486dda02
of1-team_b1
 
5b23febe-1817-405d-8e7f-c4388feb9fbc
 
 
 
of1-team_b1

 

Means each RID should be separately .

Can someone guide me on this.

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Surely, this is just a table of sourceagent and Rid

index=ABCns=XYZ app_name=DF "ARC EVENT RECEIVED FROM SOURCE"| rex "RID:(?<RID>(\w+-){4}\w+)-(?<sourceagent>\w+-\w+)"
| eval count=1
| table RID, sourceagent, count | rename sourceagent as "Source"

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Surely, this is just a table of sourceagent and Rid

index=ABCns=XYZ app_name=DF "ARC EVENT RECEIVED FROM SOURCE"| rex "RID:(?<RID>(\w+-){4}\w+)-(?<sourceagent>\w+-\w+)"
| eval count=1
| table RID, sourceagent, count | rename sourceagent as "Source"
0 Karma

thambisetty
SplunkTrust
SplunkTrust
index=ABCns=XYZ app_name=DF "ARC EVENT RECEIVED FROM SOURCE"| rex "RID:(?<RID>(\w+-){4}\w+)-(?<sourceagent>\w+-\w+)"
| stats count,  by sourceagent,RID
| rename sourceagent as "Source"
————————————
If this helps, give a like below.
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...