# Logstash docker container is trying to connect to elasticsearch

**URL:** <https://discuss.elastic.co/t/logstash-docker-container-is-trying-to-connect-to-elasticsearch/78146>\
**Category:** Logstash\
**Created:** [March 10, 2017, 1:09pm UTC](https://discuss.elastic.co/t/logstash-docker-container-is-trying-to-connect-to-elasticsearch/78146 "2017-03-10T13:09:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jillesvangurp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jillesvangurp/32/3863_2.png) [@jillesvangurp](https://discuss.elastic.co/u/jillesvangurp)\
**Post date:** [March 10, 2017, 1:09pm UTC](https://discuss.elastic.co/t/logstash-docker-container-is-trying-to-connect-to-elasticsearch/78146/1 "2017-03-10T13:09:31Z")

</div>

I'm trying to get the logstash docker container up and running.

So, when I run

`docker run docker.elastic.co/logstash/logstash:5.2.2`

it tries to connect to elasticsearch out of the box even when my pipeline (layered on top of the official image) only specifies stdout as the ONLY output. This is a bit unexpected from my point of view. I might want to run it with some other output (e.g. just talking to a queue). I'd certainly not want it to attempt to connect to anything out of the box.

This seems to be related to some pre-configured metrics plugin that may or may not be useful. However, I'd prefer the docker container to have a virgin setup that does not need anything else running (unless I tell it to). Is this intentional?

It looks like this is because of the x-pack plugin installation that the Dockerfile does. Documentation for this seems to be missing here: [https://www.elastic.co/guide/en/logstash/5.2/docker.html](https://www.elastic.co/guide/en/logstash/5.2/docker.html)?

I tried the deprecated docker hub image as well, which doesn't work at all because of some missing log4j configuration I also tried the tar ball, which behaves as I expect it to (i.e. doing nothing else than what is in my pipeline).

---

<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 7, 2017, 1:09pm UTC](https://discuss.elastic.co/t/logstash-docker-container-is-trying-to-connect-to-elasticsearch/78146/2 "2017-04-07T13:09:41Z")

</div>

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