Ive been trying to get an Elasticsearch date histogram aggregation of the "Day Of Month" (buckets must be from 1 to 31).
For example, when I'm aggreghating by "Month and Year" I just use:
GET /index_sample/_search?search_type=count
{
"aggs" : {
"Test" : {
"date_histogram" : {
"field" : "LAST_MODIFIED_DATE",
"interval" : "month",
"format" : "yyyyMM",
"time_zone": "-02:00"
}
}
}
}
Does anybody knows how to achieve it using Date Histogram approach?
As the application here needs Time Zone support for all date dimensions, seems like the best way to go.
Thanks