Splunk Search

Sort Fields in Charts

wyang6
Path Finder

I have the following chart:

City/Day | Friday | Monday | Thursday | Tuesday | Wednesday

Chicago  | Yes    | Yes    | No       | Yes     | Yes

Dallas   | No     | Yes    | No       | No      | No

New York | No     | No     | Yes      | No      | Yes

How do I sort or re-organize the columns such that it's not in alphabetical order. i.e.:

City/Day | Monday | Tuesday | Wednesday | Thursday | Friday

Chicago  | Yes    | Yes     | Yes       | No       | Yes

Dallas   | Yes    | No      | No        | No       | No

New York | No     | No      | Yes       | Yes      | No

Thank you!

Tags (2)
1 Solution

Stephen_Sorkin
Splunk Employee
Splunk Employee

To reorder fields here, use the "fields" command:

... | fields "City/Day" Monday Tuesday Wednesday Thursday Friday

View solution in original post

wyang6
Path Finder

I typed with the "space" and "vertical bar" character on the keyboard. If you meant in Splunk, I just used the commands below.

0 Karma

Stephen_Sorkin
Splunk Employee
Splunk Employee

To reorder fields here, use the "fields" command:

... | fields "City/Day" Monday Tuesday Wednesday Thursday Friday

Genti
Splunk Employee
Splunk Employee

how did you produce the above chart?

0 Karma
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 ...