Hello
I want to have a daily aggregation index with daily avg, percentiles etc .
I've created a daily transform with: (more complex than below)
"pivot": {
"group_by": {
"datetime": {
"date_histogram": {
"field": "datetime",
"calendar_interval": "1d"
},
"server": {
"terms": {
"field": "server"
}
},
},
"aggregations": {
"avg_value": {
"avg": {
"field": "value"
}
},...........
and an hourly with:
"pivot": {
"group_by": {
"datetime": {
"date_histogram": {
"field": "datetime",
"calendar_interval": "1h"
},
"server": {
"terms": {
"field": "server"
}
},
},
"aggregations": {
"avg_value": {
"avg": {
"field": "value"
}
},...........
when I start it, it works fine, and I'm happy with the results in the destination index.
the issue is, that It causes very high cpu, and I see it in "indexing" state ALL THE TIME
I tried "frequency": "1h", (maximum value) for the daily, but it's still indexing all the time
what's the explanation for this?
any solution for running a daily aggregation every day at 03:00 (lots of dimensions so I think watcher isn't the right tool), and hourly each HH:10?
thanks!