I have a curl that can search the top sender:
curl -XGET "http://localhost:9200/_search" -H 'Content-Type: application/json' -d'
{
"size": 0,
"aggs": {
"group_by_state": {
"terms": {
"field": "remetente.keyword"
}
}
}
}'
and another quem search for a range of date:
curl -XGET "http://localhost:9200/_search" -H 'Content-Type: application/json' -d'
{
"aggs":{
"range": {
"date_range": {
"field": "data1",
"format": "MM-yyy",
"ranges": [
{ "to": "now-10M/M" },
{ "from": "now-10M/M" }
]
}
}
}
}'
i want to make this two curl with one unique curl, someone can help-me?