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
Super Champion

| 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.
Take the 2021 Splunk Career Survey

Help us learn about how Splunk has
impacted your career by taking the 2021 Splunk Career Survey.

Earn $50 in Amazon cash!