Hello!
I am making a dashboard that counts log messages and groups them by type and day.
I managed to get the correct logs and visualize them with this query:
sum by (MessageTemplate)(count_over_time({...} | json | MessageTemplate="foo" or MessageTemplate="bar" [$__auto] )) or vector(0)
HOWEVER… The days for that the logs are grouped under are shifted one day forward…
Here is a portion of the logs that renders the above dashboard, the ones I have marked should in my mind end up on the 15th of march, but in the panel they end up on the 16th.
Does this have to do with how the step (which is configured to [1d]
) is configured? And how should it be configured otherwise?
Or is it something with how I represent the
The extra hour that gets added has to do with the timezone of my browser. The issue is the same when I’m running the dashboard in UTC.
Anyone that knows if it is fixable or what I am doing wrong?
I would like to avoid the ugly hack of subtracting 24 hours of each grouping in the result…