Skip to content

Instantly share code, notes, and snippets.

@devtronic
Last active April 1, 2021 15:01
Show Gist options
  • Save devtronic/2a2b2b9f28e5bf570e780a7a3dd156d4 to your computer and use it in GitHub Desktop.
Save devtronic/2a2b2b9f28e5bf570e780a7a3dd156d4 to your computer and use it in GitHub Desktop.
Laravel Homestead Kibana 7.9.0
#!/usr/bin/env bash
echo ">>> Installing Kibana"
# Check https://www.elastic.co/downloads/kibana for latest version
KIBANA_VERSION=7.9.0
sudo mkdir -p /opt/kibana
sudo chmod -R 755 /opt/kibana
sudo chown -R vagrant:vagrant /opt/kibana
wget --quiet https://artifacts.elastic.co/downloads/kibana/kibana-$KIBANA_VERSION-linux-x86_64.tar.gz
tar xvf kibana-$KIBANA_VERSION-linux-x86_64.tar.gz -C /opt/kibana --strip-components=1
rm kibana-$KIBANA_VERSION-linux-x86_64.tar.gz
# Configure to start up Kibana automatically
curl https://gist.githubusercontent.com/thisismitch/8b15ac909aed214ad04a/raw/bce61d85643c2dcdfbc2728c55a41dab444dca20/kibana4 \
| sed 's~kibana4~kibana~gi' \
| sed 's~start-stop-daemon --start --pidfile "$PID_FILE" --make-pidfile --background --exec $DAEMON~start-stop-daemon --start --pidfile "$PID_FILE" --make-pidfile --background --exec $DAEMON -- --allow-root~gi' \
> /tmp/kibana.svc
sudo mv /tmp/kibana.svc /etc/init.d/kibana7
sudo chmod +x /etc/init.d/kibana7
sudo update-rc.d kibana7 defaults 95 10
sudo systemctl enable kibana7
sudo service kibana7 start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment