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!

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

 Prepare to elevate your security operations with the powerful upgrade to Splunk Enterprise Security 8.x! This ...

Get Early Access to AI Playbook Authoring: Apply for the Alpha Private Preview ...

Passionate about security automation? Apply now to our AI Playbook Authoring Alpha private preview ...

Reduce and Transform Your Firewall Data with Splunk Data Management

Managing high-volume firewall data has always been a challenge. Noisy events and verbose traffic logs often ...