# Logstash 5.4 , i installed freshly in my ubuntu 16.04 server , after starting the logstash there is no logstash file in init.d directory

**URL:** <https://discuss.elastic.co/t/logstash-5-4-i-installed-freshly-in-my-ubuntu-16-04-server-after-starting-the-logstash-there-is-no-logstash-file-in-init-d-directory/89890>\
**Category:** Logstash\
**Created:** [June 19, 2017, 7:12am UTC](https://discuss.elastic.co/t/logstash-5-4-i-installed-freshly-in-my-ubuntu-16-04-server-after-starting-the-logstash-there-is-no-logstash-file-in-init-d-directory/89890 "2017-06-19T07:12:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)\
**Post date:** [June 19, 2017, 7:12am UTC](https://discuss.elastic.co/t/logstash-5-4-i-installed-freshly-in-my-ubuntu-16-04-server-after-starting-the-logstash-there-is-no-logstash-file-in-init-d-directory/89890/1 "2017-06-19T07:12:18Z")

</div>

root@dev01:/etc/systemd/system# sudo /etc/init.d/logstash start  
sudo: /etc/init.d/logstash: command not found

---

<div class="post-metadata">

**Author:** ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)\
**Post date:** [June 19, 2017, 7:13am UTC](https://discuss.elastic.co/t/logstash-5-4-i-installed-freshly-in-my-ubuntu-16-04-server-after-starting-the-logstash-there-is-no-logstash-file-in-init-d-directory/89890/2 "2017-06-19T07:13:28Z")

</div>

i followed this doc  
[logstash5.4](https://www.elastic.co/guide/en/logstash/current/running-logstash.html#running-logstash-systemd)

---

<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:** [June 19, 2017, 7:34am UTC](https://discuss.elastic.co/t/logstash-5-4-i-installed-freshly-in-my-ubuntu-16-04-server-after-starting-the-logstash-there-is-no-logstash-file-in-init-d-directory/89890/3 "2017-06-19T07:34:18Z")

</div>

Since Ubuntu 16.04 uses systemd instead of init, you should try:

```auto
sudo systemctl start logstash.service

```

which is described in the same doc.

---

<div class="post-metadata">

**Author:** ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)\
**Post date:** [June 27, 2017, 6:18am UTC](https://discuss.elastic.co/t/logstash-5-4-i-installed-freshly-in-my-ubuntu-16-04-server-after-starting-the-logstash-there-is-no-logstash-file-in-init-d-directory/89890/4 "2017-06-27T06:18:42Z")

</div>

root@dev01:/usr/share/logstash# sudo bin/logstash --path.settings /etc/logstash -f /etc/logstash/conf.d/02-beats-input.conf --config.test\_and\_exit  
ERROR: Failed to parse YAML file "/etc/logstash/logstash.yml". Please confirm if the YAML structure is valid (e.g. look for incorrect usage of whitespace or indentation). Aborting... parser\_error=\>(): expected , but found BlockMappingStart while parsing a block mapping at line 138 column 2

---

<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:** [June 27, 2017, 1:43pm UTC](https://discuss.elastic.co/t/logstash-5-4-i-installed-freshly-in-my-ubuntu-16-04-server-after-starting-the-logstash-there-is-no-logstash-file-in-init-d-directory/89890/5 "2017-06-27T13:43:50Z")

</div>

This implies there is something wrong in your configuration file on line 138. You should check there first.

---

<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:** [July 25, 2017, 1:44pm UTC](https://discuss.elastic.co/t/logstash-5-4-i-installed-freshly-in-my-ubuntu-16-04-server-after-starting-the-logstash-there-is-no-logstash-file-in-init-d-directory/89890/6 "2017-07-25T13:44:13Z")

</div>

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