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):
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!