I'm painting a date_histogram with the data I have in elastic, the problem that I find myself with is that I need to give me back all the data I have according to some filters that I passed in the query grouped by interval, if not by an X number of aggregations.
Let's see if I explain, I want the data to group them by an interval that calculates elastic to give me 30 aggregations, for example, but I do not know if elastic has some parameter that substitutes the interval for something that you indicate that you want X aggregations.