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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...