Logstash run as service

I installed logstash with a tar.gz package.
I want to run as a service so that logstash can run automatically when the system reboots.
How should I set it up?

logstash: 7.6
os: centos7

Instead of using rpm, we need a method that runs as a service in the current installation plan.

You need to edit logstash/config/startup.options as necessary for your environment.

Next run logstash/bin/system-install. This will use the setting in startup.options to create a systemd service file (usually /etc/systemd/system/logstash.service).

You can now run Logstash as a daemon/service.

systemctl daemon-reload
systemctl enable logstash
systemctl start logstash

Rob

GitHub YouTube LinkedIn
How to install Elasticsearch & Kibana on Ubuntu
What is the best storage technology for Elasticsearch?

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