Bucket script aggregation


#1

I'd like to know if it's possible to use bucket script aggregation in kibana.
Dynamic scripting is disable in my configuration of elasticsearch, so I use script files.

If this functionnality is not yet available can I divide a count by an other (on a different filter) with an other means ?


(Tanya Bragin) #2

You can't use scripted aggregation directly in Kibana at this time. Scripting only allows you to provide scripted input into supported aggregations.

Out of curiosity, what would you like to use scripted aggregation for?


#3

Thanks.
I'd like to determine when the turnover by sale point decreases.
So I need to compare 2 agregates.


#4

I'd also like to visualize evolution of (number of connections / number of points of sale)


Support for scripted metrics in data tables and visualisations
(Denis A. Egorov) #5

There are no plans to add this functionality?


#6

I look forward to, but apparently not yet, you could follow https://github.com/elastic/kibana/issues/4584 for updates.


(alainc) #7

Hi,

i was trying also to do something like that inside kibana , that works nice in curl but i saw it's not possible to report it inside Kibana.
as grouping by day of week is not directly possible.

Any idea to do that without this aggr?

thks

one of th other usage i was thinking of is to compare avearge and max value based on day of the week+hour inside this day to compare to current value

{
"size": 0,
"aggs": {
"perday": {
"terms": {
"script": "doc['datedeath'].date.dayOfWeek.value"
}
}
}
}


How to Visualize data created using Bucket Script into dashboard
(system) #8