Hello,
I am trying to make a query using auto_date_histogram and extended_bounds but i get the error:
[auto_date_histogram] unknown field [extended_bounds]
the documentation for auto_date_histogram does mention extended_bounds in the note but I can't figure it out. here is the documentation I am looking at where it mentions extended_bounds:
here is my query:
GET poller-*/_search
{
"aggs": {
"time_buckets": {
"auto_date_histogram": {
"field": "timestamp",
"buckets": 100,
"minimum_interval": "minute",
"format": "epoch_millis",
"extended_bounds": {
"min": 0,
"max": 500
}
},
"aggs": {
"ifhcin_avg": {
"avg": {
"field": "ifhcin_avg"
}
},
"ifhcin_max": {
"max": {
"field": "ifhcin_max"
}
},
"ifhcout_avg": {
"avg": {
"field": "ifhcout_avg"
}
},
"ifhcout_max": {
"max": {
"field": "ifhcout_max"
}
},
"bw_in": {
"max": {
"field": "bw_in_util_pct"
}
},
"bw_out": {
"max": {
"field": "bw_out_util_pct"
}
},
"ifSpeed": {
"max": {
"field": "ifSpeed"
}
},
"percentage": {
"bucket_script": {
"buckets_path": {
"in": "bw_in",
"out": "bw_out"
},
"script": "if (params.in > 0.50) { return (1) } else if (params.out > 0.50) { return (1) } else { if (params.in > params.out) { return (params.in) } else if (params.out > params.in) { return (params.out) } }"
}
},
"none": {
"bucket_script": {
"buckets_path": {
"in": "bw_in",
"out": "bw_out",
"speed": "ifSpeed"
},
"script": "if (params.in > 0.50) { return (params.speed) } else if (params.out > 0.50) { return (params.speed) } else { return null }"
}
},
"largest": {
"bucket_script": {
"buckets_path": {
"in": "ifhcin_max",
"out": "ifhcout_max"
},
"script": "if (params.in < params.out) { return params.in } else if (params.out < params.in) { return params.out } else { return params.in }"
}
}
}
}
},
"size": 20
}