Alloy config ingest local log file

hello

loki.write "endpoint" {
    endpoint {
        url = "http://loki:3100/loki/api/v1/push"
    }
    external_labels = {}
}

local.file_match "radio_logs" {
    path_targets = [{
        __path__    = "/data/240621FH.log",
        job         = "varlogs",
    }]    
}

loki.source.file "files" {
  targets    = local.file_match.radio_logs.targets
  forward_to = [loki.write.endpoint.receiver]
}

With this config, I am not seeing anything in Loki. What could I be missing?

Thanks

ah beautiful, added config to also process alloy’s log itself and that helped me find the issue

I dont have a loki container loki:3100 :wink: