Created
September 1, 2015 10:24
-
-
Save nathanmac/ee18320275fdbc7614c1 to your computer and use it in GitHub Desktop.
Installing Kibana
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
#!/usr/bin/env bash | |
echo ">>> Installing Kibana" | |
# Set some variables | |
KIBANA_VERSION=4.1.1 # Check https://www.elastic.co/downloads/kibana for latest version | |
sudo mkdir -p /opt/kibana | |
wget --quiet https://download.elastic.co/kibana/kibana/kibana-$KIBANA_VERSION-linux-x64.tar.gz | |
sudo tar xvf kibana-$KIBANA_VERSION-linux-x64.tar.gz -C /opt/kibana --strip-components=1 | |
rm kibana-$KIBANA_VERSION-linux-x64.tar.gz | |
# Configure to start up Kibana automatically | |
cd /etc/init.d && sudo wget --quiet https://gist.githubusercontent.com/thisismitch/8b15ac909aed214ad04a/raw/bce61d85643c2dcdfbc2728c55a41dab444dca20/kibana4 | |
sudo chmod +x /etc/init.d/kibana4 | |
sudo update-rc.d kibana4 defaults 96 9 | |
sudo service kibana4 start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment