[Rollup] incorrect check on histo group field type #32035
Closed
Description
opened on Jul 13, 2018
Elasticsearch version: 6.3.1
Description of the problem including expected versus actual behavior:
{
"error": {
"root_cause": [
{
"type": "remote_transport_exception",
"reason": "[XXXX][XXXX:9300][cluster:admin/xpack/rollup/put]"
}
],
"type": "illegal_argument_exception",
"reason": "Validation Failed: 1: The field referenced by a histo group must be a [numeric] type, but found [scaled_float] for field [system.cpu.idle.pct];"
},
"status": 400
}
I expect scaled_float is a numeric type and the check for allowed types has to be adjusted/extended
Steps to reproduce:
at console exec:
PUT _xpack/rollup/job/metricbeat_test
{
"index_pattern": "metricbeat-*",
"rollup_index": "metricbeat_1h",
"cron": "12 * * * * ?",
"page_size": 1000,
"groups": {
"date_histogram": {
"field": "@timestamp",
"interval": "1h",
"delay": "3h"
},
"terms": {
"fields": [
"host.name",
"metricset.module",
"metricset.name"
]
},
"histogram": {
"fields": [
"system.cpu.idle.pct"
],
"interval": 12
}
},
"metrics": [
{
"field": "system.cpu.total.pct",
"metrics": [
"max"
]
}
]
}
Provide logs (if relevant):
Activity