Last active
April 6, 2017 07:24
-
-
Save Sryther/673c9c6d570b1165801cc4618d780954 to your computer and use it in GitHub Desktop.
Install Logtstash 5.2.2 on Debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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