Splunk Search

How do I adjust the command so that the columns are ordered numerically in a chart?

GrahamHay
New Member

I am generating a basic chart with the following command:

index=test | eval latency = (_indextime - _time) | chart count by latency span=10

The order of the columns in the chart seems to be lexical so I get:

0-10,10-20,100-110,110-120, ...

How do I adjust the command so that the columns are ordered numerically?

0-10,10-20,20-30,30-40, ...

NB: there are too many bins for a solution using "rename" to be practical.

Many thanks
Graham

0 Karma
1 Solution

Vijeta
Influencer

sort latency, should work

View solution in original post

0 Karma

Vijeta
Influencer

sort latency, should work

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

🍂 Fall into November with a fresh lineup of Community Office Hours, Tech Talks, and Webinars we’ve ...

Transform your security operations with Splunk Enterprise Security

Hi Splunk Community, Splunk Platform has set a great foundation for your security operations. With the ...

Splunk Admins and App Developers | Earn a $35 gift card!

Splunk, in collaboration with ESG (Enterprise Strategy Group) by TechTarget, is excited to announce a ...