I have constructed a search in Kibana Dev-tool, that gives me the respond I'm looking for. In there I have an aggregation:
GET /monitor/_search
{
"query": {
"bool": {
"must": [
{ "match": {"_type": "ActivitySummary"} } ],
"should": [
{ "match": {"activityName": "Formulär"} },
{ "match": {"activityName": "Beslut"} }
],
"minimum_should_match" : 1
}
},
"sort": {"taskStartTime": { "order": "asc" }},
"_source": [ "taskStartTime", "taskCompletedTime", "activityName", "taskInstanceId", "processInstanceId"],
"size": 0,
"aggs": {
"days": {
"date_histogram": {
"field": "taskStartTime",
"interval": "day"
}
}
}
}
Is there any way to call for that aggregation in a REST-request in the http://localhost:9200/monitor/_search?q=...-format?
How do I do that?