Splunk Search

How to sort the output with deliminator as ","

akash_akkis
New Member

Hi I want to search the output with sorted result which has output as below

   2014.09.08 02:52:07.559,2014.09.08 02:52:06.217,**1342**,jhdlkljkljsdjlkj

I want to sort the result as highlighted number 1342

How can I achive this goal using splunk search

0 Karma

MuS
SplunkTrust
SplunkTrust

Hi akash_akkis,

if the number you need always occurs after the second , you can use something like this:

your base search here | rex "^(?:[^\,]*\,){2}(?<myField>([^\,]*))" | ...

This will get you a new field called myField which can be used further.

hope this helps ...

cheers, MuS

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...