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

Add "last" stats in term panel #1116

Closed
dakotahNorth opened this issue Apr 4, 2014 · 5 comments
Closed

Add "last" stats in term panel #1116

dakotahNorth opened this issue Apr 4, 2014 · 5 comments

Comments

@dakotahNorth
Copy link

The terms panel terms_stats supports count, total_count, min, max, total, mean but does not support last value.

Last is necessary in order to display the latest values that have occurred within the time filter and when sorted by this value, this will provide the equivalent of Top N terms based on the stats of the data.

@dakotahNorth dakotahNorth changed the title Option for last value stats type in the terms panel "last" stats type in the terms panel when terms mode is terms_stats Apr 4, 2014
@dakotahNorth dakotahNorth changed the title "last" stats type in the terms panel when terms mode is terms_stats Add "last" stats in term panel Apr 6, 2014
@skillflip
Copy link

This is probably not that easy to do, since the aggregations you see are the ones provided directly by elasticsearch statistical facet. It does not currently have a "last" statistic.

See http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-facets-statistical-facet.html

So a last value will have to use a different new query.

@lookastar
Copy link

+1

@stzilli
Copy link

stzilli commented Jul 8, 2014

+1 This would be really nice to have.

@lookastar
Copy link

there is a similar thing done in here: #1409
with PR #1336 it behaves pretty much like terms panel

@rashidkpc
Copy link
Contributor

As mentioned, you'd need to lobby for this on the elasticsearch side. Once it is implemented there it will be available as a matter of course in Kibana.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
@rashidkpc @stzilli @dakotahNorth @lookastar and others