Automated installation script for the FLEEK stack (Filebeat, Logstash, Elasticsearch, Elastic APM Server and Kibana) on Ubuntu 18.04 (bionic).
Produced for a sydjango meetup talk concentrating on Elastic APM,
on-fleek installs the entire FLEEK stack on any Ubuntu 18.04 installation with little user input.
Yes, FLEEK. It stands for:
Elastic APM Server
Getting all of the parts of the FLEEK stack talking to each other and working in harmony is often a barrier to entry that makes a lot of people give up before being able to test out all FLEEK has to offer.
What does this script do?
This script installs OpenJDK 11 and the FLEEK stack. As an added bonus, Kibana is placed behind nginx with basic authentication enabled and an auto-renewing certbot SSL certificate is enabled on the FQDN.
- A fresh install or instance of Ubuntu 18.04 should be used. This script installs
openjdk-11-jrewhich is required by the FLEEK stack.
- Clone this repository into a folder using
git clone https://github.com/bartonip/on-fleek.
- Go into the folder using
- Assign execution permissions to the
chmod +x on-fleek.
- This script must be run as sudo, so run it using
sudo ./on-fleekto begin the installation.
The installation is mostly unattended with the exception of the entry of a username/password for Kibana and FQDN for the SSL Certificate.
What ports are the services on?
Filebeat: No port as it listens for files.
Logstash: 0.0.0.0:5040 [TCP]
Elasticsearch: localhost:9200 [TCP]
Elastic APM Server: 0.0.0.0:8200 [TCP]
Kibana: localhost:5060 [TCP], proxied by nginx on 0.0.0.0:80/443 [TCP]
Where to from here?
All of Elasticsearch's logging and performance monitoring goodness has been installed. Connect your application to Elastic APM to start monitoring right away, or connect your application's logstream to Logstash either directly or through Filebeat to start analysing your logs now.