Skip to content

Commit

Permalink
Update ELK instructions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jpetazzo committed Jan 8, 2019
1 parent 80d6b57 commit bc349d6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions elk/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ version: "2"

services:
elasticsearch:
image: elasticsearch
image: elasticsearch:2
# If you need to access ES directly, just uncomment those lines.
#ports:
# - "9200:9200"
# - "9300:9300"

logstash:
image: logstash
image: logstash:2
command: |
-e '
input {
Expand Down Expand Up @@ -47,7 +47,7 @@ services:
- "12201:12201/udp"

kibana:
image: kibana
image: kibana:4
ports:
- "5601:5601"
environment:
Expand Down
8 changes: 6 additions & 2 deletions slides/containers/Logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

- The Compose file is in the container.training repository on GitHub.

```bash
$ cd ~/container.training/stacks
$ docker-compose -f elk.yml up -d
$ git clone https://github.com/jpetazzo/container.training
$ cd container.training
$ cd elk
$ docker-compose up
```

- Let's have a look at the Compose file while it's deploying.
Expand Down
2 changes: 1 addition & 1 deletion stacks/elk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
image: elasticsearch:2

logstash:
image: logstash
image: logstash:2
command: |
-e '
input {
Expand Down

0 comments on commit bc349d6

Please sign in to comment.