# How to make the loastash.conf effective

**URL:** <https://discuss.elastic.co/t/how-to-make-the-loastash-conf-effective/170645>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [March 3, 2019, 4:31pm UTC](https://discuss.elastic.co/t/how-to-make-the-loastash-conf-effective/170645 "2019-03-03T16:31:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yinkai\_cheng](https://avatars.discourse-cdn.com/v4/letter/y/d6d6ee/32.png) [@yinkai\_cheng](https://discuss.elastic.co/u/yinkai_cheng)\
**Post date:** [March 3, 2019, 4:31pm UTC](https://discuss.elastic.co/t/how-to-make-the-loastash-conf-effective/170645/1 "2019-03-03T16:31:51Z")

</div>

Hi，all  
i configed the filebeat to send docker log to the logstash，And it does works, i can see the docker log on the logstash container sent by filebeat. then i config the logstash config file "logstash.conf" to send the docker log to the elasticsearch like below:

```auto
input {
  beats {
    port => 5044
  }
}

output {
  elasticsearch {
    hosts => ["http://192.168.1.103:9200"]
    manage_template => false
    index => "docker_log" 
    #document_type => "%{[@metadata][type]}"
    #user => "elastic"
    #password => "changeme"
  }
}

```

but it does not work, i can't find the index in the elasticsearch. i just thinking whether the conf file is not work or something? what's the problem?

---

<div class="post-metadata">

**Author:** ![Emanuil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emanuil/32/36783_2.png) [@Emanuil](https://discuss.elastic.co/u/Emanuil)\
**Post date:** [March 4, 2019, 11:54am UTC](https://discuss.elastic.co/t/how-to-make-the-loastash-conf-effective/170645/2 "2019-03-04T11:54:25Z")

</div>

What does your Logstash log show? (As in, the logging that Logstash itself does.) Maybe it encouters some kind of problem connecting to Elasticsearch or writing to the index.

[https://www.elastic.co/guide/en/logstash/6.6/logging.html](https://www.elastic.co/guide/en/logstash/6.6/logging.html)

---

<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 1, 2019, 11:54am UTC](https://discuss.elastic.co/t/how-to-make-the-loastash-conf-effective/170645/3 "2019-04-01T11:54:28Z")

</div>

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