Skip to content

Instantly share code, notes, and snippets.

@Sryther
Last active April 6, 2017 07:24
Show Gist options
  • Save Sryther/673c9c6d570b1165801cc4618d780954 to your computer and use it in GitHub Desktop.
Save Sryther/673c9c6d570b1165801cc4618d780954 to your computer and use it in GitHub Desktop.
Install Logtstash 5.2.2 on Debian
#!/bin/bash
# Install dependencies and tools
apt-get update
apt-get install software-properties-common -y
add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main"
apt-get update
apt-get install oracle-java8-installer vim curl -y
# Download debs
curl -O https://artifacts.elastic.co/downloads/logstash/logstash-5.2.2.deb
# Install the packages
dpkg -i logstash-5.2.2.deb
# Edit the configuration to match your server
vim /etc/logstash/logstash.yml
vim /etc/logstash/conf.d/logstash.conf
# Start on boot (ps -p 1 to know if init or systemd is used), systemd:
/bin/systemctl daemon-reload
/bin/systemctl enable logstash.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment