Can't Start Filebeat from docker compose

I am trying to start filebeat using docker compose. but i am facing this error

/usr/local/bin/docker-entrypoint: line 8: exec: filebeat: not found

This is my docker-compose

    filebeat:
        image: docker.elastic.co/beats/filebeat:7.9.0
        user: ${CURRENT_UID}
        restart: always
        volumes:
          - ./filebeat.yml:/usr/share/filebeat/filebeat.yml
          - ./filebeat:/usr/share/filebeat/data
          - /var/run/docker.sock:/var/run/docker.sock
          # This is needed for filebeat to load container log path as specified in filebeat.yml
          - /var/lib/docker/containers/:/var/lib/docker/containers/:ro
          - /var/log/filebeat-logs:/var/lib/filebeat-logs
        # disable strict permission checks
        command: ["--strict.perms=false"]

When i run it as root it works, but for certain reasons i can't run it as root

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.