@gcusello I have a below Query- index="services" statusCode="500" | bucket _time span=day | eval time=strftime(_time,"%F") | chart count by customerId,time Result shown in below screenshot, and I want to sort by last column. Somehow I evaluated what would be column name with below eval function- | eval max="1900-01-01", reg="^\d{4}-\d{2}-\d{2}$" | foreach * [eval col="<<FIELD>>", max=if(match(col,reg), if(col>max,col,max) ,max)] | sort - max | fields - col max reg But in above query , sort -max is not working for me. I'm just looking for a solution to sort this dynamically generated column through query.
... View more