Editorial question13.3K views2,873 votes1 answer4,703 following
AI-generatedElasticsearch date_histogram buckets shifting without time_zone parameter
Date Aggregation Alignment Elasticsearch stores date fields internally as UTC milliseconds since epoch. When utilizing the date_histogram aggregation, the default behavior aligns bucket boundaries to UTC midnight. This creates a discrepancy when the source data represents local wall-clock time or when reporting requirements demand alignment with a specific r