Update ELK instructions

The slides didn't mention to clone the git repo containing
the Compose file for the ELK stack. This is now fixed.

Also, the version numbers were not all correctly set
in this Compose file. Also fixed.
This commit is contained in:
Jerome Petazzoni
2019-01-08 15:09:11 -06:00
parent 80d6b57697
commit bc349d6c4d
3 changed files with 10 additions and 6 deletions

View File

@@ -2,14 +2,14 @@ version: "2"
services: services:
elasticsearch: elasticsearch:
image: elasticsearch image: elasticsearch:2
# If you need to access ES directly, just uncomment those lines. # If you need to access ES directly, just uncomment those lines.
#ports: #ports:
# - "9200:9200" # - "9200:9200"
# - "9300:9300" # - "9300:9300"
logstash: logstash:
image: logstash image: logstash:2
command: | command: |
-e ' -e '
input { input {
@@ -47,7 +47,7 @@ services:
- "12201:12201/udp" - "12201:12201/udp"
kibana: kibana:
image: kibana image: kibana:4
ports: ports:
- "5601:5601" - "5601:5601"
environment: environment:

View File

@@ -194,9 +194,13 @@ will have equal success with Fluent or other logging stacks!*
- We are going to use a Compose file describing the ELK stack. - We are going to use a Compose file describing the ELK stack.
- The Compose file is in the container.training repository on GitHub.
```bash ```bash
$ cd ~/container.training/stacks $ git clone https://github.com/jpetazzo/container.training
$ docker-compose -f elk.yml up -d $ cd container.training
$ cd elk
$ docker-compose up
``` ```
- Let's have a look at the Compose file while it's deploying. - Let's have a look at the Compose file while it's deploying.

View File

@@ -5,7 +5,7 @@ services:
image: elasticsearch:2 image: elasticsearch:2
logstash: logstash:
image: logstash image: logstash:2
command: | command: |
-e ' -e '
input { input {