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!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...