Bucket script aggregation

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 ?

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?

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

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

There are no plans to add this functionality?

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

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"
}
}
}
}