All Apps and Add-ons

one dash-board on multiple search

raindrop18
Communicator

I have these search strings and I would like to create one Dash-board for all of them. and not know how to consolidate the search and have a dash-board showing all the stats at once. any suggestion appreciated.

index="class" sourcetype="summer class" grade1a | timechart count

index="class" sourcetype="summer class" grade1b | timechart count

index="class" sourcetype="summer class" grade1c | timechart count

index="class" sourcetype="summer class" grade2a | timechart count

index="class" sourcetype="summer class" grade2b | timechart count

index="class" sourcetype="summer class" grade2c | timechart count

index="class" sourcetype="summer class" grade3a | timechart count

index="class" sourcetype="summer class" grade3b | timechart count

index="class" sourcetype="summer class" grade3c | timechart count

index="class" sourcetype="summer class" grade4a | timechart count

index="class" sourcetype="summer class" grade4b | timechart count

index="class" sourcetype="summer class" grade4c | timechart count

index="class" sourcetype="summer class" grade5a | timechart count

index="class" sourcetype="summer class" grade5b | timechart count

index="class" sourcetype="summer class" grade5c | timechart count

0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

You could extract the grade into a field and do a single timechart count by grade.
If you still need to filter on the grades you can create a large single grade=grade1a OR grade=grade1b OR ... filter.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

You could extract the grade into a field and do a single timechart count by grade.
If you still need to filter on the grades you can create a large single grade=grade1a OR grade=grade1b OR ... filter.

raindrop18
Communicator

you are awesome. working perfectly. and this will be my template for future. thanks much!!

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

So the grade is the first word after the timestamp? Try this:

index="class" sourcetype="summer class" grade=grade1a OR grade=grade1b OR grade=grade1c | rex "^\S+\s+\S+\s+(?<grade>\S+)" | timechart count by grade

If that works, move the regular expression without the double quotes into a field extraction so you don't have to include it in every search.

0 Karma

raindrop18
Communicator

this is the exact output(log)

"2014-06-19 21:18:30" grade1a id=abbyes,ou=user,o=school,ou=services,dc=middle,dc=forgerock,dc=org 9948958e0fbc506008 "Not Available" INFO o=school,ou=services,dc=middle,dc=forgerock,dc=org "cn=dsameuser,ou=DSAME Users,dc=middle,dc=forgerock,dc=org" Permit school.access "Not Available" 10.1.1.1

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

No, specifying grade=grade1a only filters, it doesn't extract the grade field.

What do the events look like?

0 Karma

raindrop18
Communicator

thanks Martin, so grade=grade1a extract the value as filed? I have tried

index="class" sourcetype="summer class" grade=grade1a OR grade=grade1b OR grade=grade1c| timechart count by grade

but not result. did I miss anything, I am new to splunk so be patient with me 🙂

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!

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...