# Sending container service logs to the elasticsearch

**URL:** <https://discuss.elastic.co/t/sending-container-service-logs-to-the-elasticsearch/189509>\
**Category:** Elasticsearch\
**Created:** [July 9, 2019, 9:55am UTC](https://discuss.elastic.co/t/sending-container-service-logs-to-the-elasticsearch/189509 "2019-07-09T09:55:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmoreira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lmoreira/32/46578_2.png) [@lmoreira](https://discuss.elastic.co/u/lmoreira)\
**Post date:** [July 9, 2019, 9:55am UTC](https://discuss.elastic.co/t/sending-container-service-logs-to-the-elasticsearch/189509/1 "2019-07-09T09:55:28Z")

</div>

Dears, good morning!  
I'm trying to set up without success in my compose file sending the logs of my containers / services to the elastic, below the configuration I'm using.  
I am using elasticstack 7.2.0 and below the configuration of my service logs  
My logstash works on port 5044 tcp, the service / container loads normally, but logs are not sent to logstash and therefore to elasticsearch.

```
logging:
  driver: "gelf"
  options:
      gelf-address: "tcp://192.168.251.108:5044"
     tag: "grafana"
     env: "producao"         

```

It will be that you can help me or indicate some documentation of configuration to help me.

---

<div class="post-metadata">

**Author:** ![aravindputrevu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aravindputrevu/32/24816_2.png) [@aravindputrevu](https://discuss.elastic.co/u/aravindputrevu)\
**Post date:** [July 10, 2019, 6:23am UTC](https://discuss.elastic.co/t/sending-container-service-logs-to-the-elasticsearch/189509/2 "2019-07-10T06:23:33Z")

</div>

Why don’t you use beats framework to ship logs?

We also have a automatic integration (  
Docker module) to docker and kubernetes through which you can ship logs. Just need need to install beats.

You can refer [this blog post](https://www.elastic.co/blog/monitoring-kubernetes-and-docker-containers-with-beats-logs-metrics-and-metadata) and [this webinar](https://www.elastic.co/webinars/elasticsearch-log-collection-with-kubernetes-docker-and-containers) for more details.

---

<div class="post-metadata">

**Author:** ![lmoreira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lmoreira/32/46578_2.png) [@lmoreira](https://discuss.elastic.co/u/lmoreira)\
**Post date:** [July 10, 2019, 8:52pm UTC](https://discuss.elastic.co/t/sending-container-service-logs-to-the-elasticsearch/189509/3 "2019-07-10T20:52:52Z")

</div>

Thank you very much I will see the documentation that made available and return.

---

<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:** [August 7, 2019, 8:52pm UTC](https://discuss.elastic.co/t/sending-container-service-logs-to-the-elasticsearch/189509/4 "2019-08-07T20:52:52Z")

</div>

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