# Alloy config ingest local log file

**URL:** <https://community.grafana.com/t/alloy-config-ingest-local-log-file/129206>\
**Category:** Grafana Loki\
**Tags:** loki, alloy\
**Created:** [August 21, 2024, 4:30pm UTC](https://community.grafana.com/t/alloy-config-ingest-local-log-file/129206 "2024-08-21T16:30:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [August 21, 2024, 4:30pm UTC](https://community.grafana.com/t/alloy-config-ingest-local-log-file/129206/1 "2024-08-21T16:30:56Z")

</div>

hello

```auto
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

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [August 21, 2024, 4:48pm UTC](https://community.grafana.com/t/alloy-config-ingest-local-log-file/129206/2 "2024-08-21T16:48:56Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/a/1/a1fd3b622ce4db972a17f850428ae1bb8eab6176.png)

I dont have a loki container `loki:3100` 😉

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [August 21, 2024, 4:50pm UTC](https://community.grafana.com/t/alloy-config-ingest-local-log-file/129206/3 "2024-08-21T16:50:22Z")

</div>

Closed on August 21, 2024, 4:50pm UTC


