Getting Data In

How to sort the contents of a list by timestamp

whydoineedtoreg
New Member

I'm currently querying

source="log" | stats list by Id

Which gives me nicely grouped data.

However I would like the content of those groups sorted by Timestamp.
That is to say I do not want the groups themselves sorted but the records inside each group.

0 Karma
1 Solution

somesoni2
Revered Legend

Right now they will sorted in reverse-chronological/descending order of timestamp (_time field). Do you want to sort in ascending/chronological order? If yes, try like this

source="log" | reverse | stats list by Id

View solution in original post

somesoni2
Revered Legend

Right now they will sorted in reverse-chronological/descending order of timestamp (_time field). Do you want to sort in ascending/chronological order? If yes, try like this

source="log" | reverse | stats list by Id
Get Updates on the Splunk Community!

Admin Your Splunk Cloud, Your Way

Join us to maximize different techniques to best tune Splunk Cloud. In this Tech Enablement, you will get ...

Cloud Platform | Discontinuing support for TLS version 1.0 and 1.1

Overview Transport Layer Security (TLS) is a security communications protocol that lets two computers, ...

New Customer Testimonials

Enterprises of all sizes and across different industries are accelerating cloud adoption by migrating ...