# Filebeat container not returning any logs or errors

**URL:** https://discuss.elastic.co/t/filebeat-container-not-returning-any-logs-or-errors/377779
**Category:** Beats
**Tags:** docker, filebeat
**Created:** [May 3, 2025, 7:45pm UTC](https://discuss.elastic.co/t/filebeat-container-not-returning-any-logs-or-errors/377779 "2025-05-03T19:45:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gewo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gewo/32/139014_2.png) [@gewo](https://discuss.elastic.co/u/gewo)
#### Post date: [May 3, 2025, 7:45pm UTC](https://discuss.elastic.co/t/filebeat-container-not-returning-any-logs-or-errors/377779/1 "2025-05-03T19:45:50Z")

</div>

Hi,

I want filebeat to get all logs from containers and push them to elastic  
When I spin up my compose it starts but does nothing. The container logs from filebeat are compleatly empty.

I know that it reads the filebeat.yml because if I put wrong permissions it complains about it but if I set the owner of the file to root it is compleatly silent

my service in compose.yml

```auto
    filebeat:
        image: docker.elastic.co/beats/filebeat:8.15.1
        container_name: filebeat
        user: root
        volumes:
            - ./elk/filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro
            - /var/run/docker.sock:/var/run/docker.sock:ro
            - /var/lib/docker/containers:/var/lib/docker/containers:ro
            - /var/log:/var/log:ro
            - /var/lib/docker:/var/lib/docker:ro
        depends_on:
            - elasticsearch
            - logstash
        restart: unless-stopped
        environment:
            - ELASTIC_PASSWORD=${ELASTIC_PASSWORD:-password}

```

my filebeat.yml

```auto
filebeat.inputs:
    - type: container
      paths:
          - '/var/lib/docker/containers/*/*.log'

processors:
    - add_docker_metadata:
          host: "unix:///var/run/docker.sock"
output.elasticsearch:
    hosts: elasticsearch:9200
    indices:
        - index: "docker-logs"

```
