I saw that some days ago the logentries driver configuration was included into readme.
https://github.com/aws/amazon-ecs-agent/pull/909/files
So I wondering if it is available now in the new docker agent version (1.15.0) and if it is how I can implement it because i cant configure this driver manually when Im creating a task definition in the aws console.
Hi @AbelGuti, you're right, currently we don't have the Logentries driver as an option through the AWS console.
You can still use the Logentries driver by registering a task using the cli. First add logentries as an ECS_AVAILABLE_LOGGING_DRIVERS in the ecs config file, then include the logConfiguration in your task definition as follows:
"containerDefinitions": [
{
...
"logConfiguration": {
"logDriver": "logentries",
"options": {
"logentries-token": "$TOKEN_PROVIDED_BY_LOGENTRIES"
}
}
]
This is working for me however looks like the 'line-only' option has not been released yet (https://github.com/moby/moby/pull/31727) making the resulting logs pretty useless for me.
There is also a Configure via JSON button in "Create a Task Definition" for the ECS console, and you're able to add logConfiguration details there as you would with the cli.
The fix for the console is on our roadmap and I'm closing this issue for now since the problem is not in agent codebase. Feel free to open a new issue if you run into problems using the Logentries driver in the future. Thanks =]
I can't find any documentation about this driver in the ECS Developer Guide
Does anyone know if the line-only option is available in ECS, and if so, in which version?
Most helpful comment
Does anyone know if the
line-onlyoption is available in ECS, and if so, in which version?