Hello Everyone,
I just started using transform in kibana UI to aggregate data and also to have a longer retention period for visualization. The data collections work fine, my transform basically collectors two fields which are aggregated on max.
My transform json is
{
"id": "testu",
"version": "7.16.1",
"create_time": 1646254133114,
"source": {
"index": [
"test12-*"
],
"query": {
"match_all": {}
}
},
"dest": {
"index": "test123"
},
"frequency": "1h",
"sync": {
"time": {
"field": "@timestamp",
"delay": "60s"
}
},
"pivot": {
"group_by": {
"@timestamp": {
"date_histogram": {
"field": "@timestamp",
"calendar_interval": "1d"
}
},
"device": {
"terms": {
"field": "devndevice"
}
},
"name": {
"terms": {
"field": "devname"
}
}
},
"aggregations": {
"in-use.max": {
"max": {
"field": "in-use"
}
},
"out-use.max": {
"max": {
"field": "out-use"
}
}
}
},
"settings": {
"max_page_search_size": 500
},
"retention_policy": {
"time": {
"field": "@timestamp",
"max_age": "180d"
}
}
}
The issue is that the my data collections happens at 7 in the evening but i want that to happen at midnight. Also since i am having a timestamp for 24h because i want to know the max for both fields each day till the previous day.
For example: March 3 12:05 AM should show run the transform and update till the march March 2 day .
How could i configure the transform to perform on a schedule time everyday to get the daily peaks of the two fields till the previous day. Currently my transform run every day at evening 7 and it generates till the previous day till the same time.
Just want to schedule the time to early morning at 12:10 from 7PM.
Regards,
Darshan