Splunk Search

How to get the total sum value and top 10 values in same timechart

vrmandadi
Builder

I am trying to get the top 10 users based on GB used in a timechart graph visualization and  also the the total GB used  for the whole day  (sum(gb) as gb)in the timechart... addcoltotals will give the total for the top 10 but I want the sum for the whole day of all users not just top 10 .How can I show in timechart sum of gb line along with the other timechart

 

| tstats count FROM datamodel=ab groupby user src dest gb _time
| fields *
| timechart sum(gb) as gb by dest limit=20 useother=f
| sort -gb
| head 20

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...