I created an Elasticsearch api request to create aggregations which I couldn't create using Kibana UI. It works in dev tools in Kibana but is there a way to turn it into a visualization (currently any visualization)?
I can't understand if I can work with Elasticsearch api requests to create visualization.
For example if I get this result under aggregation:
"2": {
"buckets": [
{
"1": {
"value": 0
},
"key_as_string": "2017-12-04T00:00:00.000+02:00",
"key": 1512338400000,
"doc_count": 3,
"1-bucket": {
"buckets": {
"matched1": {
"doc_count": 0
}
}
},
"to_present": {
"value": 200
}
},
{
"1": {
"value": 10
},
"key_as_string": "2017-12-11T00:00:00.000+02:00",
"key": 1512943200000,
"doc_count": 30,
"1-bucket": {
"buckets": {
"matched1": {
"doc_count": 10
}
}
},
"to_present": {
"value": 28.181818181818183
}
}
]
}
}```