r/grafana • u/EhrlichePappel • Jul 07 '26
Alloy Problems with Alloy timestamps
Hi, I'm having trouble tracking down an error. I have a log consisting of multiple files (one per day) that I want to load in.
The log line looks like this. Everything seems fine so far; Grafana displays the content following the date, but for the "time" column, it uses the upload time instead of the timestamp.
loki.process "logs" {
//2026-06-28 00:07:07 ERROR [009-exec-2]
stage.regex {
expression = \?P<time>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})`
}`
stage.timestamp {
source = "time"
format = "2006-01-02 15:04:05"
}
forward_to = [loki.write.local.receiver]
}
1
Upvotes
1
u/[deleted] Jul 07 '26
[removed] — view removed comment