We have installed Grafana Alloy v1.14.0-rc.1 as a Windows service using alloy-installer-windows-amd64. We are experiencing an issue with hourly log rotation where logs generated at the start of each hour are missing.
We have tested multiple configurations, including different sync_period values, as well as running without sync_period. However, in all cases, logs at the beginning of each hourly rotation are being lost.
Has anyone encountered this issue before? Could you please help us identify the root cause and recommend a fix or workaround? Thank you.
option1
local.file_match “a_log_source” {
path_targets = [
{“path” = "D:\temp\aa\*.log ]
sync_period = “1ms”
}
loki.source.file “a_logs_k” {
targets = local.file_match.a_log_source.targets
tail_from_end = true
forward_to = [loki.process.a_process.receiver]
file_watch {
min_poll_frequency = “1ms”
max_poll_frequency = “250ms”
}
}