Kibana: Allow sorting on multiple fields

Created on 13 Nov 2013  ·  67Comments  ·  Source: elastic/kibana

Currently it looks like kibana only allows you to sort a table on a single field. However, I believe elasticsearch allows multi-field sort.

Discover Beats KibanaApp blocked enhancement

Most helpful comment

Guys, every time you are posting "+1" messages, you are sending annoying notifications to every single person who subscribed to this issue without adding anything but noise here (just look at the last dozens of messages!)

Github has a voting feature:

screenshot from 2017-07-24 11-15-58

That would be great if you could just click on these buttons instead (which don't send all these notifications to everybody) to express your support and/or interest for this issue.

Thanks!

All 67 comments

+1

+1 Would like to sort on date and sequence number.

+1 This would be really useful to deal with very fast log (where timestamp is not enough)

+1 This would prevent much sorting and resorting to find things in non-grouped items.

+1

+1

+1

+1

+1

Concerning UI, this could be done like in datatables : by using "Shift+Click" on second, third, ... column.
https://datatables.net/examples/basic_init/multi_col_sort.html

+1

+1

+1

timestamp + sequence sorting is really needed

+1

+1

How hard would this change be to implement?

+1

+1

+1

this would fix an issue we're seeing where events that are generated with the same timestamp can appear in the wrong sort order with respect to the original event source. Depending on the precision of your timestamps (e.g. a time format of HH:mm:ss), you may end up with a whole second worth of events in an undefined order.

+1

I cannot agree with Rashid. Preserving the order of logs as they came into Logstash, cannot substitute this feature. Because you can use more than one Logstash and logs can go through randomly chosen Logstash, so order of logs would not be preserved. So sorting on multiple fields is necessary.

+1

required

+1, would also like to sort on date and sequence number.

+1

+1

+1

+1

+1

:+1:

Is this featured in kibana yet?

+1

I see 2 options for implementations:

  1. In discovery screen somehow to choose a second column for sort. This is preferably.
  2. In Edit search object to allow multiple sort criteria in Sort section.

👍

+1

+1

+1

+1

+1

+100

+1

+1

+1

+1

+1

+1

+1, really need this feature

+1

+1

need it

+1

Guys, every time you are posting "+1" messages, you are sending annoying notifications to every single person who subscribed to this issue without adding anything but noise here (just look at the last dozens of messages!)

Github has a voting feature:

screenshot from 2017-07-24 11-15-58

That would be great if you could just click on these buttons instead (which don't send all these notifications to everybody) to express your support and/or interest for this issue.

Thanks!

Is there any resolution on this issue?

+1

Would be great if we could at least use the custom query dsl to add the second sort. But this does not appear to work.

I think by now it's clear that nobody from the Kibana team cares about this issue.

so ... major data aggregation & analytics tool and the primary UI doesnt support multi-sort although the backend does.

sigh

I think its time to search for a real elasticsearch-frontend, then - because Kibana obviously lacks core functionality.

@ devs : its probably time to abandon the frontend altogether, this project appears to be trainwreck. Awesome job on Elasticsearch & Logstash though!

Any update on this issue?

+1 This is so basic that I'm shocked this isn't already part of the version.

cute how the same troll keeps downvoting every single comment ... get a life.

Well, after six years its pretty safe to say : this isnt happening. Ever. Which is too bad.

It's not "trolling". I'm down-voting pointless comments that cause me to receive notification emails.

If you want to see the feature, thumbs-up the original post. If you want to see the progress, just read the comments (while trying to ignore the spam of course).

If you _really_ want to see this feature, go pay someone to implement it.

If you want to stop receiving notofications, simply disable them or change the type.

If you want to express your (massive) anger, do so elsewhere

If you really want to express your anger, do some trolling on 4chan or go and get a stress relief toy

So just a quick update on this...I was able to add a scripted field and concatenate two fields together to create a new field that I am able to use for sorting.

Although not completely optimal, it IS working and now can sort my discovery tab correctly.

finally something productive again - thanks for sharing your workaround!

@jenyphur
so you have an additional Field that needs to be generated on all queries besides @timestamp? could you make it visible in the "Time" column or do you need to add it every time to the discover table to trigger the sortation again and again after each search or every sortation on other fields?

In a professional Environment... this seems to be a not so nice solution

+1

Thanks for implementing this!!

I'll go dig up what I was working on in 2013 and give it a spin :)

Great news!
I can’t wait to test it!

Was this page helpful?
0 / 5 - 0 ratings