Variable [clock] is not defined

Hi, there.

Zabbix use script to aggregation
"aggregations": {
"group_by_script": {
"terms": {
"script": {
"source": "Math.floor((params.width*((doc['clock.data'].getMillis()/1000+params.delta)%params.size))/params.size)",
"lang": "painless"
, "params": {
"size": 300,
"width": 1337,
"delta": 234
}
After update to elk 7.2 it retuns error

{
"shard": 0,
"index": "dbl-2019-07-04",
"node": "Dlz86WeuSAGgN8K1rLjfSA",
"reason": {
"type": "script_exception",
"reason": "compile error",
"script_stack": [
"... loor((params.width*((doc[clock].date.getMillis()/1 ...",
"_____________________________ ^---- HERE"
],
"script": "Math.floor((params.width*((doc[clock].date.getMillis()/1000+params.delta)%params.size))/params.size)",
"lang": "painless",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "Variable [clock] is not defined."
}
}
}

Can anyone help me to change script if it's possible.

The problem is not actual

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.