Re:How We Use Docker For Continuous Delivery – Part 2
by leorocky on Monday June 09, 2014 @07:36AM
(#7867910)
I wonder how they log from applications in Docker, we found it to be one of the blockers that kept us from using Docker.
[ Parent
| on HN ]
Re:How We Use Docker For Continuous Delivery – Part 2
by benjaminwootton on Monday June 09, 2014 @07:40AM
(#7867925)
I 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.
Re:How We Use Docker For Continuous Delivery – Part 2
by leorocky on Monday June 09, 2014 @07:41AM
(#7867929)
Do you have log rotation?
Re:How We Use Docker For Continuous Delivery – Part 2
by opendais on Monday June 09, 2014 @10:10AM
(#7868512)
I 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.
Re:How We Use Docker For Continuous Delivery – Part 2
by leorocky on Monday June 09, 2014 @10:33AM
(#7868626)
> 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.
Re:How We Use Docker For Continuous Delivery – Part 2
by opendais on Monday June 09, 2014 @11:21AM
(#7868855)
> 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.