Last active
June 14, 2016 06:25
-
-
Save killtw/a9cb08b58c17edb0bbf9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.5.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 sed -i "s/# server.host: \"0.0.0.0\"/server.host: \"192.168.10.10\"/" /opt/kibana/config/kibana.yml | |
sudo sed -i "s/# elasticsearch.url: \"http:\/\/localhost:9200\"/elasticsearch.url: \"http:\/\/192.168.10.10:9200\"/" /opt/kibana/config/kibana.yml | |
sudo chmod +x /etc/init.d/kibana4 | |
sudo update-rc.d kibana4 defaults 95 10 | |
sudo service kibana4 start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment