-
Notifications
You must be signed in to change notification settings - Fork 14
Send Docker container's logs to Logstash #101
Comments
Renaming this to "Send Docker container's logs to Logstash". I think the review codebase to standardize and increase logging is covered by #105. |
I've been working though Nathan LeClaire's Automating Docker Logging: ElasticSearch, Logstash, Kibana, and Logspout post. Here's the TL;DR: # Upgrade docker-compose to 1.2.0. Necessary to support `extends` in compose yaml files
brew update
brew upgrade docker-compose
# Checkout his canned ELK/Logspout setup
git clone https://github.com/nathanleclaire/elk nathanleclaire-elk
# Launch it
cd nathanleclaire-elk
docker-compose up ...then browse to the following:
I'll be continuing to work through this post, and then try to merge a hopefully simpler version into our Docker Compose setup. |
I've been reading through Centralized System and Docker Logging with ELK Stack, which takes the approach we've been discussed:
The piece of this puzzle I didn't completely understand is that the In addition, this makes for a strange startup order for new environments:
This seems awkward, but maybe there's a solution again with docker-gen. |
I think I'm leaning back to the STDOUT -> logspout -> Logstash, even with its limitations. See #104 (comment). |
The logback-logstash integration is JVM specific (i.e. won't work for other tech) and has been somewhat flaky at times. It also uses TCP which might affect performance of the running application. Explore ways to send logs from running Docker container to Logstash. At the same time, review codebase to standardize and increase logging
The text was updated successfully, but these errors were encountered: