Skip to content

mpolinowski/elk-server-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Elastic Stack

Setup

  1. Clone the this repository:
git clone https://github.com/mpolinowski/elk-server-compose.git
  1. Build and Run:
docker-compose build
docker-compose up
  1. Create Random User Logins

Now I can connect to the running Elasticsearch container and generate random passwords for both the elastic and kibana_system user:

docker-compose exec -T elasticsearch bin/elasticsearch-reset-password --batch --user elastic
docker-compose exec -T elasticsearch bin/elasticsearch-reset-password --batch --user kibana_system
  1. Replace Kibana User Login

Replace the password of the kibana_system user inside the Kibana configuration file with the password generated in the previous step:

kibana/config/kibana.yml

elasticsearch.username: kibana_system
elasticsearch.password: 'mygeneratedpassword'

And change the ELASTIC_PASSWORD environment variable from the elasticsearch service inside the Compose file docker-compose.yml.:

ELASTIC_PASSWORD: 'mygeneratedpassword'
  1. Restart and Start Using Elasticsearch / Kibana