Splunk Search

How to chart multiple fields over time on one graph and create a table summarizing totals by user?

cpalicensing
New Member

Using the base search listed below it presents me with all print jobs, one print job per user. I would like to chart the fields "Total Pages" by "Full Name" for all users(all results) over time on one graph. In total there are around 37 users and several random "Total Page" counts. Thinking of using a line graph. What would be the best way to complete this?

I then would like to create a table that totals all pages printed by user. So adding the "Total Pages" field, by "Full Name" in a table.

Base Search:

index="win_custom" sourcetype="print-job-accounting-report" 

alt text

Thank you!

0 Karma
1 Solution

renjith_nair
Legend

Hi @cpalicensing,

Does this work for you ?

Chart

index="win_custom" sourcetype="print-job-accounting-report"|timechart span=1d values("Total Pages") by "Full Name"

If this doesn't fit , please let us know what aggregation you want to do on "Total Pages". Also adjust the span min,day,hour etc

Table

    index="win_custom" sourcetype="print-job-accounting-report"|stats sum("Total Pages") by "Full Name"
---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

0 Karma

renjith_nair
Legend

Hi @cpalicensing,

Does this work for you ?

Chart

index="win_custom" sourcetype="print-job-accounting-report"|timechart span=1d values("Total Pages") by "Full Name"

If this doesn't fit , please let us know what aggregation you want to do on "Total Pages". Also adjust the span min,day,hour etc

Table

    index="win_custom" sourcetype="print-job-accounting-report"|stats sum("Total Pages") by "Full Name"
---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...