Thanks for the answer. I have first tried it in ES to do some queries. However, I have come across with some issues.
GET linux_cpu*/_search?search_type=count
{
"aggs": {
"my_date_histo": {
"date_histogram": {
"field": "@timestamp",
"interval": "day"
},
"aggs": {
"the_sum": {
"avg": {
"field": "CPU(%)"
}
},
"the_movavg": {
"moving_avg": {
"bucketsPath": "the_sum",
"window": 90,
"model": "holt_winters",
"settings": {
"type": "add",
"alpha": 0.8,
"beta": 0.2,
"gamma": 0.7,
"period": 30
},
"predict": 30
}
}
}
}
}
}
This is my command, and I wish to predict 30 days data. I have data input from 2014-12-31 to 2015-05-31, a 15-second basis record for CPU value and I use day as interval here in ES query.
However, when I go through the date start from 2015-06-01, it gives me the following
"key_as_string": "2015-06-01T00:00:00.000Z",
"key": 1433116800000,
"doc_count": 0,
"the_sum": {
"value": null
}
},
{
"key_as_string": "2015-06-02T00:00:00.000Z",
"key": 1433203200000,
"doc_count": 0,
"the_sum": {
"value": null
}
},
Is that an error or is that normal for ES?
I have forgotten that I have deep dived the issue here; thus, please kindly reply me there if you have a solution instead of replying How to build charts from Elasticsearch query.
Great thanks.