Splunk Search

How to get environment in customized order

Engineer_Zen
Observer

IMG-20210405-WA0002.jpgHow can I sort so that I can get the Stage_INT 1st and others after that and below is the output image. Can someone please give me the query

Like this 

 

IMG-20210405-WA0003.jpg

@mayo @mayi @mayurr98 

Labels (2)
0 Karma

thambisetty
SplunkTrust
SplunkTrust

| sort ENVIRONMENT

The below example is run anywhere :

| makeresults | eval ENVIRONMENT="STAGE_INT,STAGE_QA,STAGE_INT,STAGE_PERF,STAGE_QA"
| makemv ENVIRONMENT delim=","
| mvexpand ENVIRONMENT
| sort ENVIRONMENT
————————————
If this helps, give a like below.
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 ...