Splunk Search

Need output value

VijaySrrie
Builder

Hi, 

Output of the below query has been attached, I need only the total value to be displayed in the dashboard. 

Here the total value is 578 only that should be displayed in the dashboard

 

index=abc sourcetype=xyz

| rex field=_raw "INFO\s+(?<action>\w+\s\:?\s?\w+\s?\w+\s?\w+\s?\w+\s?\w+)"
| search action="getActiveRecords response" OR action="SUCCESS : get active records"
| stats count by action
| addtotals count col=t row=t labelfield=action label=output

vijaysri_0-1614920799469.png

 

Labels (3)
0 Karma
1 Solution

dave_null
Path Finder

You should be able to add another two lines to filter out the other stuff:

| search action=output
| table Total

View solution in original post

0 Karma

dave_null
Path Finder

You should be able to add another two lines to filter out the other stuff:

| search action=output
| table Total

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...