Skip to content

an automated deployment for a locally run Elastic Stack

Notifications You must be signed in to change notification settings

nathancroce/ElasticStackSetup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElasticStackSetup

Note

As of 11/29/23. setting up passwords prevents kibana from retreiving ES logs due to authentication errors

elkbanner

These scripts should be useful in setting up and configuring a locally-run Elastic Stack on a Linux machine.

All contributions are appreciated!

How to install & run

0. Make sure your machine is up to date

sudo apt update
sudo apt upgrade

1. Download this Repository

sudo apt-get install git
sudo git clone https://github.com/nathancroce/ElasticStackSetup

This is the first script to run, and it MUST be run from the ElasticStackSetup directory. It will install elasticsearch, kibana, logstash, and filbeats as apt packages. This will only install and configure the essentials: security will be disabled

cd ElasticStackSetup
sudo bash setup_install

Runtime for this script is about 400 seconds on my VM.

This is the second script to run. It will create default random passwords for elastic, kibana_system, logstash_system, beats_system, apm_system, and remote_monitoring_user. Make sure to save the passwords when they are outputted to the terminal at the end of the script.

sudo bash setup_passwords

4. Run setup_tls

This is the third script to run. It will create a certificate authority(the CA is self signed) and a certificate for encryption. The passwords for the CA and certificate will be randomly generated as well. Make sure to save the passwords when they are outputted to the terminal at the end of the script.

sudo bash setup_tls

This script displays the current status of elasticsearch, kibana, logstash, and filebeats. It is only used for convenience.

sudo bash status_services

About

an automated deployment for a locally run Elastic Stack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages