Splunk Search

Dynamically sort field by specific order?

boxmetal
Path Finder

Hi Splunk community,

I have an excel file that sorts a field at certain order and possibly changes over time
The excel file look something like this
field1
AS
AC
RO
BE
..

Is it possible for me to sort with that particular field order in a search ? Thanks for your help.

 

Labels (3)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @boxmetal,

have you seen the sort command (https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Sort)?

<your_search>
| sort field1

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @boxmetal,

have you seen the sort command (https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Sort)?

<your_search>
| sort field1

Ciao.

Giuseppe

Get Updates on the Splunk Community!

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...

Splunkbase | Splunk Dashboard Examples App for SimpleXML End of Life

The Splunk Dashboard Examples App for SimpleXML will reach end of support on Dec 19, 2024, after which no new ...

Understanding Generative AI Techniques and Their Application in Cybersecurity

Watch On-Demand Artificial intelligence is the talk of the town nowadays, with industries of all kinds ...