Splunk Dev

How can I change the position of the addtotals field

kaphie2002
New Member

I created a dashboard with the following query that displays everything I need however the addtotals field "Total" is the last column in the table. How can I move it to the 2nd column? Thanks

Search | rex field=_raw ".renderTime.*connect.*send.*ms.(?.\w+)." | fields + host + AccountID | stats count by host, AccountID | xyseries AccountID host count | addtotals host*

Current Output:

AcccountID Host1 Host2 Host3 Total

Desired Output:

AccountID Total Host1 Host2 Host3

Tags (1)
0 Karma

somesoni2
Revered Legend

Try like this

Search | rex field=_raw ".*renderTime.*connect.send.ms.(?.\w+)." | fields + host + AccountID | stats count by host, AccountID | xyseries AccountID host count | addtotals | table AccountID Total *
0 Karma

elliotproebstel
Champion

You can rearrange field display order by using the fields command:

your search | fields AccountID Total Host1 Host2 Host3
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 ...