Skip to content

Instantly share code, notes, and snippets.

@abn
Last active November 30, 2022 13:17
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abn/618fbac00a1814931af5 to your computer and use it in GitHub Desktop.
Save abn/618fbac00a1814931af5 to your computer and use it in GitHub Desktop.
logstash systemd service file
[Unit]
Description=Logstash
Documentation=https://www.elastic.co/products/logstash
After=network.target
ConditionPathExists=/etc/logstash.conf
[Service]
ExecStart=/opt/logstash/bin/logstash agent -f /etc/logstash.conf
[Install]
WantedBy=multi-user.target
@vandatech
Copy link

Thanks - lifesaver !

@kaismax
Copy link

kaismax commented Nov 30, 2022

thanks !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment