Skip to content

Instantly share code, notes, and snippets.

@kurtroberts
Forked from jbaker10/elk-zentral.txt
Created June 20, 2018 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurtroberts/42a2980603c99606a465ef52165d8bf2 to your computer and use it in GitHub Desktop.
Save kurtroberts/42a2980603c99606a465ef52165d8bf2 to your computer and use it in GitHub Desktop.
Setup ELK stack in Zentral
## To install Kibana
sudo docker pull sebp/elk:latest
## To run the link on your localhost just to test
docker run --link zentral_elastic_1:elasticsearch -p 127.0.0.1:5601:5601 --net zentral_default kibana
## After this, you should be able to access the Kibana dashboard from 127.0.0.1:5601
## Edit the base.json under conf/start/zentral/base.json
vi ./conf/start/zentral/base.json
## change the following line
"kibana_base_url": "http://zentral.domain.com:5601
## Edit the docker-compose.yml file to include kibana at load
vi ./docker-compose.yml
## Change the following line to this:
elastic:
image: elasticsearch
## add the kibana image and link it, and forward ports
## lines to add:
kibana:
image: kibana
links:
- elastic:elasticsearch
ports:
- "5601:5601"
## Restart everything with the following commands:
docker-compose stop
docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment