Splunk Search

timechart total mb per source

arjangoos
Path Finder

I want to create a timechart line graph based on: total kb per source over time. Now I have:

index="_internal" source="*metrics.log" per_source_thruput access_log | bin _time span=1d as day | timechart sum(kb) as totalKB | streamstats sum(totalKB)

This search works but only for access_log, I want to see all sources in one graph

time size result

on 0:00 100kb 100kb

on 1:00 50kb 150kb

on 1:30 27kb 177kb

Tags (1)
0 Karma

arjangoos
Path Finder

Ok thanks for your reply. But it is not an answer to my question. So if anyone knows how I can solve my problem.

0 Karma

yannK
Splunk Employee
Splunk Employee

so you can use the same search, differentiate per series. (the bucket is not necessary, timechart will to it)


index=_internal source="*metrics.log" per_source_thruput |timechart span=1d sum(kb) as totalKB by series | streamstats sum(totalKB)

the totalKB will be the total of each day added the previous days, if you want total per unique day, use |addtotals


index=_internal source="*metrics.log" per_source_thruput |timechart span=1d sum(kb) as totalKB by series | addtotals

then click on the graph display (the third display mode)

0 Karma

yannK
Splunk Employee
Splunk Employee

Do you know that metrics.log contains only a sample of the measures (top 10), this means that you can look at speed measures, but not a volume, especially if yo have more than 10 sources...

if you want to measure precisely the volume per source, check this guide, using license_usage.log

http://wiki.splunk.com/Community:TroubleshootingIndexedDataVolume

0 Karma
Get Updates on the Splunk Community!

What’s New in Splunk Enterprise 9.4: Tools for Digital Resilience

What’s New in Splunk Enterprise 9.4: Tools for Digital ResilienceTune in to What’s New in Splunk Enterprise ...

Get Schooled with Splunk Education: Explore Our Latest Courses

At Splunk Education, we’re dedicated to providing incredible learning experiences that cater to every skill ...

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...