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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...