# Logs not arriving with docker-compose

**URL:** <https://discuss.elastic.co/t/logs-not-arriving-with-docker-compose/300524>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [March 24, 2022, 6:44am UTC](https://discuss.elastic.co/t/logs-not-arriving-with-docker-compose/300524 "2022-03-24T06:44:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arraso26](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arraso26/32/103214_2.png) [@Arraso26](https://discuss.elastic.co/u/Arraso26)\
**Post date:** [March 24, 2022, 6:44am UTC](https://discuss.elastic.co/t/logs-not-arriving-with-docker-compose/300524/1 "2022-03-24T06:44:04Z")

</div>

**Good, a couple of days ago I set up ELK and everything worked fine, but now that I have set it up in docker-compose and after configuring it I can't get the logs that I want to send from another machine to mine, I show you the configuration files to see if you have any idea.**

```auto
ubuntudocker@ubuntudocker:~/dockerelk$ cat docker-compose.yml
version: '3.7'

services:
  elasticsearch:
    image: elasticsearch:7.9.2
    ports:
      - '9200:9200'
    environment:
      - discovery.type=single-node
    ulimits:
      memlock:
        soft: -1
        hard: -1

  kibana:
    image: kibana:7.9.2
    ports:
      - '5601:5601'

  logstash:
    image: logstash:7.9.2
    ports:
      - '5000:5000'
    volumes:
      - type: bind
        source: ./logstash_pipeline/
        target: /usr/share/logstash/pipeline
        read_only: true

```

```auto
 cat logstash_pipeline/ports.conf
input {
tcp {
port => 5000
}
}

output {
elasticsearch {
 hosts => ["elasticsearch:9200"]
     manage_template => false
     index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
}
}

```

**CLIENT**

```auto
 sudo cat /etc/filebeat/filebeat.yml
filebeat.inputs:
- type: log
  enabled: true
  paths:
    - "/var/log/apache2/*"
  fields:
    apache: true
  fields_under_root: true

filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false

setup.template.settings:
  index.number_of_shards: 3

logging.level: info
logging.to_files: true
logging.files:
  path: /var/log/filebeat
  name: filebeat
  keepfiles: 7
  permissions: 0640

output.logstash:
  hosts: ["192.168.14.79:5000"]

```

The only log I get every time I start the service is this one:

 ![loh](https://us1.discourse-cdn.com/elastic/original/3X/0/7/07d3030a02f379a3468bd71c7d7aaf1cf758724e.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 21, 2022, 6:44am UTC](https://discuss.elastic.co/t/logs-not-arriving-with-docker-compose/300524/2 "2022-04-21T06:44:53Z")

</div>

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