Fargate / Firelens implementations use the DataSet Fluentd image to upload logs via the task definition. As such, the Scalyr Agent image is specified as follows:
"image": "scalyr/fluentd:latest",
Next, define the parser
(in bold) as a parameter within the options
section:
"containerDefinitions": [
{
"dnsSearchDomains": null,
"environmentFiles": null,
"logConfiguration": {
"logDriver": "awsfirelens",
"secretOptions": null,
"options": {
"awslogs-group": "/ecs/first-run-task-definition",
"message_field": "log",
"parser": "myApp",
"@type": "scalyr",
"awslogs-region": "us-east-2",
"server_attributes": "{\"serverHost\": \"whee\"}",
"api_write_token": "0eIZAH/HZT76GX9UnNDbMEBJREy2jO5vVK71ZrYUg/Ik-",
"awslogs-stream-prefix": "ecs"
}
},
Note that in this particular context, the parser is not defined as being part of the server_attributes
.
Comments
0 comments
Please sign in to leave a comment.