Hacker News new | past | comments | ask | show | jobs | submit login

I wonder how they log from applications in Docker, we found it to be one of the blockers that kept us from using Docker.



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.


Do you have log rotation?


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.


> 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.


> 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: