# Cannot run logstash as a service, with active pipeline

**URL:** https://discuss.elastic.co/t/cannot-run-logstash-as-a-service-with-active-pipeline/98244
**Category:** Logstash
**Created:** [August 24, 2017, 1:45pm UTC](https://discuss.elastic.co/t/cannot-run-logstash-as-a-service-with-active-pipeline/98244 "2017-08-24T13:45:04Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)
#### Post date: [August 24, 2017, 3:52pm UTC](https://discuss.elastic.co/t/cannot-run-logstash-as-a-service-with-active-pipeline/98244/7 "2017-08-24T15:52:47Z")

</div>

The only lines that should need adding are these:

```auto
node.name: logstash
path.data: /var/lib/logstash
path.config: /etc/logstash/conf.d
path.logs: /var/log/logstash
xpack.monitoring.elasticsearch.url: "http://X.X.X.X:9200"
xpack.monitoring.elasticsearch.username: XXXXXX
xpack.monitoring.elasticsearch.password: XXXXXX

```

I note in your logstash.yml file that you have both `node.name` and `log.level` indented with a single space. YAML is indent-sensitive, as that indicates nested structures. Try removing the indents.

---

_[View the full topic](https://discuss.elastic.co/t/cannot-run-logstash-as-a-service-with-active-pipeline/98244)._
