Hello Team
Finally , I was able to write a QUERY using CURL command and get the required data as below.
Could you please help me , how to get only
doc_count: 11111111 , value : 222222
and exclude all other stuff using CURL command.
"aggregations" : {
"count_per_month" : {
"buckets" : [
{
"key_as_string" : "2020-12-01T00:00:00.000Z",
"key" : 1606780800000,
"doc_count" : 86956624,
"type_count" : {
"value" : 2111421
}
},
{
"key_as_string" : "2020-12-02T00:00:00.000Z",
"key" : 1606867200000,
"doc_count" : 83205134,
"type_count" : {
"value" : 2139852
}
},
{
"key_as_string" : "2020-12-03T00:00:00.000Z",
"key" : 1606953600000,
"doc_count" : 87624223,
"type_count" : {
"value" : 2123403
}
},
{
"key_as_string" : "2020-12-04T00:00:00.000Z",
"key" : 1607040000000,
"doc_count" : 87149873,
"type_count" : {
"value" : 2141200
}
}
]
}