diff --git a/docs/logging.md b/docs/logging.md index 48b7215d..0748b853 100644 --- a/docs/logging.md +++ b/docs/logging.md @@ -152,15 +152,13 @@ class: elk-manual .exercise[ -- Get the ID of the Logstash container: +- View the logs of the logstash service: ```bash - CID=$(docker ps -q --filter label=com.docker.swarm.service.name=logstash) + docker service logs logstash --follow ``` -- View the logs: - ```bash - docker logs --follow $CID - ``` + + ] @@ -267,6 +265,9 @@ The test message should show up in the logstash container logs. alpine echo hello ``` + + + ] The test message should show up as well in the logstash container logs. @@ -345,18 +346,6 @@ You can also set `--restart-delay`, `--restart-max-attempts`, and `--restart-win .exercise[ - - - Enable GELF logging for the `rng` service: ```bash docker service update dockercoins_rng \