How to get a count by index id

Help with the query how to get count of each index on a specified time frame

Use the below query to get it
curl -XGET "http://localhost:9200/index*/_search" -H 'Content-Type: application/json' -d'
{
"query": {
"bool": {
"filter": {
"range": {
"@timestamp": {
"gte": "now-2d",
"lt": "now"
}
}
}
}
}, "size" : 0,
"aggs" : {
"keywords" : {
"significant_terms" : {
"field" : "_index"
}
}
}
}'

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.