4 ms·
I wonder how they log from applications in Docker, we found it to be one of the blockers that kept us from using Docker.
by leorocky 12y ago
I wonder how they log from applications in Docker, we found it to be one of the blockers that kept us from using Docker.
- benjaminwootton 12y agoI meant to add that, but essentially we map /var/log in the container to /var/log on the host, and then use rsyslogd to push that into a centralised logstash.
- leorocky 12y agoDo you have log rotation?
- opendais 12y agoI use Papertrail but if you want something free...just run Logstash + Kibana + Elastic Search. Running a log shipping agent on every docker instance isn't 'free' but it lets you clearly label and manage your logs nicely.
- leorocky 12y ago> I use Papertrail Do you have to take pains to not accidentally log user and secure information to a third party when you use Papertrail? > Logstash + Kibana + Elastic Search That seems involved and a long time to set up, but I will check it out. Thanks.
- opendais 12y ago> Do you have to take pains to not accidentally log user and secure information to a third party when you use Papertrail? I only use Papertrail for personal projects that don't have any real security requirements. $7/month is alot less hassle than the time it takes to setup Logstash+Kibana+ES. However, for anything with security requirements I'd run Logstash+Kibana+ES over a VPN.