So far i am working on the ES date histogram for getting monthly result, and my query is like
{ "aggs": { "sales_over_time": { &qu