Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow sorting on multiple fields #696

Closed
mattwhite opened this issue Nov 13, 2013 · 67 comments · Fixed by #41918
Closed

Allow sorting on multiple fields #696

mattwhite opened this issue Nov 13, 2013 · 67 comments · Fixed by #41918
Labels
blocked Feature:Discover Discover Application release_note:enhancement Team:Beats Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@mattwhite
Copy link

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

@t2tviking
Copy link

+1

@ProTip
Copy link

ProTip commented Feb 28, 2014

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

@cyrildubus
Copy link

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

@krenn08
Copy link

krenn08 commented Jun 10, 2014

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

@kwlzn
Copy link

kwlzn commented Jun 27, 2014

+1

3 similar comments
@luzili
Copy link

luzili commented Nov 8, 2014

+1

@ryan-stateless
Copy link

+1

@driv
Copy link

driv commented Mar 27, 2015

+1

@fbaligand
Copy link
Contributor

+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

@Rjdrenth
Copy link

+1

@luciamkh
Copy link

+1

1 similar comment
@Inderjeet26
Copy link

+1

@usego
Copy link

usego commented Oct 16, 2015

timestamp + sequence sorting is really needed

@gairom
Copy link

gairom commented Oct 20, 2015

+1

1 similar comment
@mirath
Copy link

mirath commented Nov 6, 2015

+1

@mirath
Copy link

mirath commented Nov 17, 2015

How hard would this change be to implement?

@pghalliday
Copy link

+1

1 similar comment
@tfgm-bud
Copy link

+1

@nheath
Copy link

nheath commented Jan 4, 2016

+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.

@rashidkpc rashidkpc added the P3 label Jan 4, 2016
@kafkapre
Copy link

kafkapre commented Jan 8, 2016

+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.

@yosqueoy
Copy link

+1

@AlexeyRokhin
Copy link

required

@darrenliddell
Copy link

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

@Chadwiki
Copy link

Chadwiki commented Feb 4, 2016

+1

3 similar comments
@detecti1
Copy link

+1

@aowen5000
Copy link

+1

@pmarrapese
Copy link

+1

@StephenOTT
Copy link

StephenOTT commented Feb 3, 2018

+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.

@oneiros-de
Copy link

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

@cjcenizal
Copy link
Contributor

Asked for in the forums: https://discuss.elastic.co/t/discover-sort-on-custom-fields/140367

@InternetPseudonym
Copy link

InternetPseudonym commented Aug 22, 2018

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!

@nreese nreese added the blocked label Aug 24, 2018
@nreese
Copy link
Contributor

nreese commented Aug 24, 2018

Blocked by #16324

@timroes timroes added Team:Visualizations Visualization editors, elastic-charts and infrastructure and removed :Discovery labels Sep 16, 2018
@hsluoyz
Copy link

hsluoyz commented Nov 11, 2018

Any update on this issue?

@randude
Copy link

randude commented Jan 3, 2019

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

@InternetPseudonym
Copy link

InternetPseudonym commented Jan 17, 2019

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.

@hemebond
Copy link

hemebond commented Jan 17, 2019

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.

@InternetPseudonym
Copy link

InternetPseudonym commented Jan 17, 2019

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

@jenyphur
Copy link

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.

@InternetPseudonym
Copy link

finally something productive again - thanks for sharing your workaround!

@nilsrobinsander
Copy link

nilsrobinsander commented Feb 27, 2019

@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

@yunyng
Copy link

yunyng commented May 25, 2019

+1

@mattwhite
Copy link
Author

Thanks for implementing this!!

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

@fbaligand
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Feature:Discover Discover Application release_note:enhancement Team:Beats Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet