Logstash is not started automatically after installation. How to start and stop Logstash depends on whether your systemuses systemd, upstart, or SysV.
Here are some common operating systems and versions, and the correspondingstartup styles they use. This list is intended to be informative, not exhaustive.
Distribution |
Service System |
|
Ubuntu 16.04 and newer |
||
Ubuntu 12.04 through 15.10 |
||
Debian 8 "jessie" and newer |
||
Debian 7 "wheezy" and older |
||
CentOS (and RHEL) 7 and newer |
||
CentOS (and RHEL) 6 |
Distributions like Debian Jessie, Ubuntu 15.10+, and many of the SUSE derivatives use systemd and thesystemctl
command to start and stop services. Logstash places the systemd unit files in /etc/systemd/system
for both deb and rpm. After installing the package, you can start up Logstash with:
sudo systemctl start logstash.service
For systems that use upstart, you can start Logstash with:
sudo initctl start logstash
The auto-generated configuration file for upstart systems is /etc/init/logstash.conf
.