Splunk Search

How to change the order of dynamic columns based on count?

splunk24
Path Finder

There is a requirement to change the order of columns on the basis of count.
for eg.
A B C D
4 2 1 3

output should be:
C B D A
1 2 3 4

Constraints:
We don't know the column names, so we can't use table C B D A

0 Karma

sundareshr
Legend

Here's a similar question with an answer. See if that will work for you

https://answers.splunk.com/answers/89367/table-sort-columns-numerically.html

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...