Amazon-ecs-agent: Logentries docker driver

Created on 8 Nov 2017  路  5Comments  路  Source: aws/amazon-ecs-agent

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.

Most helpful comment

Does anyone know if the line-only option is available in ECS, and if so, in which version?

All 5 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dcosson picture dcosson  路  3Comments

PettitWesley picture PettitWesley  路  5Comments

soumyasmruti picture soumyasmruti  路  5Comments

GeyseR picture GeyseR  路  3Comments

sparrc picture sparrc  路  4Comments