Hello, our company needs to use a custom log driver designed to meet our requirements, but unfortunately, the ECS agent does not support custom log drivers.
Because Docker's built-in gelf log driver does not meet all of our company's requirements, we have developed a plugin for Docker, a custom log driver that transforms and handles the logs of applications running on Docker. One of the transformations is the aggregation of n partial logs into a single log containing the entire message. We also have resolved a known TTL DNS issue that affects the log driver gelf (Reported at issue https://github.com/moby/moby/issues/17904#issuecomment-194403940). Our solution is working, but when we tried to use the log driver on the ECS agent, we figure out that it does not support custom log drivers.
Maybe something should be done in this session code:
Hi @dangerousplay, unfortunately we currently do not support custom log drivers.
I will mark this as a feature request.
Hi @dangerousplay, unfortunately we currently do not support custom log drivers.
I will mark this as a feature request.
Sumoligic is a custom log driver and is supported...
I think a more specific way to say this is that we don鈥檛 currently support arbitrary custom logging drivers. There鈥檚 implications on the service side with regard to capabilities and placement.
Most helpful comment
There is a workaround for people using EC2 based ECS.
If you set your custom driver as the default for the docker daemon (docs) and don't provide any configuration through ECS, the custom driver will be used (discovered/verified this while trying to test out loki)