Different values using date histogram

Hi everyone. I'am using the package @elastic/elasticsearch (^7.9.1) to do queries in my cluster.
I have a dashboard showing the concurrent users using my videos platform. My query is:

{
    query: {
      bool: {
        must: [
          {
            match: {
              tenantId: tenantId
            }
          },
          {
            match: {
              type: 'watching'
            }
          },
          {
            range: {
              timestamp: {
                gte : initialDate,
                lte : endDate
              }
            }
          }
        ]
      }
    },
    size : 0,
    aggs : {
      range_aggs: {
        date_histogram: {
          field           : 'timestamp',
          interval        : 'minute',
          min_doc_count   : 0,
          extended_bounds : {
            min : initialDate,
            max : endDate
          }
        }
      }
    }
  };

When I do a query range 6 hours ago or more, every result happens this (exactly 3 hours ago):

3h

If I try the same request after 30 minutes, the drop in the graph will appear now + 30 minutes.

Has anyone ever experienced this? Can you help me?

Thanks!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.