# Unable to start Logstash via systemctl

**URL:** <https://discuss.elastic.co/t/unable-to-start-logstash-via-systemctl/166691>\
**Category:** Logstash\
**Created:** [February 1, 2019, 8:24am UTC](https://discuss.elastic.co/t/unable-to-start-logstash-via-systemctl/166691 "2019-02-01T08:24:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ricardo](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@Ricardo](https://discuss.elastic.co/u/Ricardo)\
**Post date:** [February 1, 2019, 8:24am UTC](https://discuss.elastic.co/t/unable-to-start-logstash-via-systemctl/166691/1 "2019-02-01T08:24:34Z")

</div>

Hi together,

after I installed Search Guard Plugin Ichanged the  
hosts =\> ["] in my own pipeline-config Output Section from:  
`hosts => ["http://localhost:9200"] to hosts => ["https://localhost:9200"]`

but now I'm unable to start it via systemctl.

If I start it via `command line /usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/myconfig.conf`

It starts without problems.

The problem while start it via systemctl is, that first he recognizes my changes at  
hosts =\> ["[https://localhost:9200](https://localhost:9200)"] but after he removes it and changes back to hosts =\> ["[http://localhost:9200](http://localhost:9200)"]

Logs:

> ES Output version determined {:es\_version=\>6}  
> Feb 01 09:13:13 wazuh-server logstash[24181]: [2019-02-01T09:13:13,632][WARN][logstash.outputs.elasticsearch] Detected a 6.x and above cluster: the `type` event field won't be used to determine the document ...:es\_version=\>6}  
> Feb 01 09:13:13 wazuh-server logstash[24181]: [2019-02-01T09:13:13,658][INFO][logstash.outputs.elasticsearch] New Elasticsearch output {:class=\>"LogStash::Outputs::Elasticsearch", :hosts=\>["[https://localhost:9200](https://localhost:9200)"]}  
> Feb 01 09:13:13 wazuh-server logstash[24181]: [2019-02-01T09:13:13,678][INFO][logstash.outputs.elasticsearch] Using mapping template from {:path=\>nil}  
> Feb 01 09:13:13 wazuh-server logstash[24181]: [2019-02-01T09:13:13,692][INFO][logstash.outputs.elasticsearch] Attempting to install template {:manage\_template=\>{"template"=\>"logstash-\*", "version"=\>60001, "s...h\_match"=\>"mess  
> Feb 01 09:13:13 wazuh-server logstash[24181]: [2019-02-01T09:13:13,720][INFO][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=\>{:removed=\>, :added=\>[[http://localhost:9200/](http://localhost:9200/)]}}  
> Feb 01 09:13:13 wazuh-server logstash[24181]: [2019-02-01T09:13:13,774][WARN][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"[http://localhost:9200/](http://localhost:9200/)", :error...

I also changed the owner and group of /etc/logstash/ to logstash:logstash  
and the same for /usr/share/logstash (inclusive sub directories)

What could be the problem?

Many thanks in advance  
Kind regards  
Ricardo

---

<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:** [March 1, 2019, 8:24am UTC](https://discuss.elastic.co/t/unable-to-start-logstash-via-systemctl/166691/2 "2019-03-01T08:24:37Z")

</div>

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