Splunk Search

How do I create a dashboard to show count roll up by location and billing system?

adtetech
Explorer

Planning to create a dashboard from the information as below. Can we see count roll up by location and billing system as shown below in Splunk? If yes, what is the logic? What are the queries used?

alt text

Tags (3)
0 Karma

lguinn2
Legend

You can see the roll-up, but it won't be expandable/collapsible as the spreadsheet you show.

You have a choice of showing the roll-up at the top or in a totals row at the bottom of each section. You may want to play around with it to make it work. Use the appendpipe command to generate totals, without affecting the existing rows. Since you didn't supply your search, I am going to make one up as an example:

yoursearchhere
| stats count by location billing_system product
| appendpipe [ stats sum(count) as count by product location | eval billing_system=" TOTAL" ]
| eval row_name = if(billing_system=" TOTAL",location,billing_system)
| sort location billing_system product
| xyseries row_name product count

Hopefully I don't have a typo in this search!

adtetech
Explorer

@lguinn ♦ Sorry for posting my comments as Answer, reason posting here is I am unable to upload attachments in comments.

my search is:
index=splunktesting source="c:\testlog2\appledata.log" location=* bsystem=* product=*|chart count(product) by bsystem product
output is
as shown in image "splunkoutput"
https://answers.splunk.com/storage/attachments/160253-splunkoutput.jpg

I am looking for out put something like
https://answers.splunk.com/storage/attachments/160254-expecting.jpg
alt text

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...