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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...