Splunk Search

stats right justify numbers

wang
Path Finder

I have stats output some numbers like min, max, avg. The numbers are left justifed and make it really hard to read. Is there a simple way to make the numbers right justified without using CSS? Less desirable would be pad with leading zeros. Is that possible?

Tags (1)

victorrosberg
Explorer

Is this really true anymore? Could it be so that a legacy version like 5.x worked like this? If I understand your question correct, you want the result of something like this:
| stats min(Value), max(Value), avg(Value)
...to end up in three columns under the Statistics tab, justified to the right of each column. That's exactly whats happens to me running Splunk version 6.2.

If it's something else you need or have an example where the above doesn't work like that, please expand on the question and add an example of when it doesn't work.

0 Karma

dc5553
Explorer

over 2 years and still no answer? Seems like this should be a pretty easy thing to do. I would like the answer as well.

0 Karma
Get Updates on the Splunk Community!

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...

[Live Demo] Watch SOC transformation in action with the reimagined Splunk Enterprise ...

Overwhelmed SOC? Splunk ES Has Your Back Tool sprawl, alert fatigue, and endless context switching are making ...

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...