Systemd logstash service

Hello, I am surprised that the deb package of logstash does not come with a systemd service.

Elasticsearch and kibana does.

Did I miss something? if it is not in the package, can you provide an official way to start, restart and stop logstash as a service?

Logstash automatically installs the correct startup script based on what your server uses. It uses pleaserun to auto-detect and install this. If your system uses systemd as its default startup method, it should have created a systemd unit file in /etc/systemd/system/logstash.service.

What OS are you using?

Hello

I am using debian 9,

I have installed the deb package logstash-6.2.3.deb

wilco@int:~$ ls /etc/systemd/system/logstash.service
ls: cannot access /etc/systemd/system/logstash.service: No such file or directory

Hello, the night has been fruitfull.

in fact, I had to run /usr/share/logstash/bin/system-install which I did not clearly see in the documentation.

I had also to change JAVACMD in /etc/logstash/startup.options.

it has generated the /etc/systemd/system/logstash.service file

1 Like

Indeed. If you have multiple or separate Java instances, this must be set before system-install will work. Glad you figured it out.

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