Skip to content

Hour of the day/Day of the week/Week of the month/Month of the year aggregation #24660

@markwalkom

Description

@markwalkom

I've come across a few users wanting to do day of the week type aggs. eg "Show me the total number of logs that occurred at 0200 on each day for the last 28 days", or "what is the average/mean/max/sum, by day of the week, for all transactions for this financial year".

You can already easily do this on a per day basis, that is for each day of the week/month/year, using a date agg. But that will not do a bucket to group all Mon/Tues/Wed/etc to grab those metrics.

Note - a script agg can do this and here's a good example.

I think this could potentially be a useful inbuilt function of the existing date range agg or a pipeline agg (or some other agg), so wanted to open it up for further discussion.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions