Hello,
I am using awslogs driver to collect my ECS container logs and I enabled Lambda (LogsToElasticsearch_mytestloges) to stream my logs to AWS elasticsearch, but it is not taking ECS Service name, Container instance name, task definition and Docker image name.
The below are my log sample on AWS Elasticsearch. Here I cant find docker image name, ECS Service name and task definition.
{
"_index": "cwl-2017.01.03",
"_type": "mytestloges",
"_id": "33081504929870395169036308436466460047129742806680469507",
"_score": 1,
"_source": {
"Message": 1482993472485,
"Request": "request",
"Rsponse": "request received",
"Method": "GET",
"Info": "INFO",
"Information": "services-shelters",
"URL": "/favicon.ico",
"Plugin": "0|app |",
"@id": "33081504929870395169036308436466460047129742806680469507",
"@timestamp": "2017-01-03T06:46:25.785Z",
"@message": ""0|app |" 1482993472485 INFO "services-shelters" request "GET" "/favicon.ico" "request received"",
"@owner": "855158544446",
"@log_group": "mytestloges",
"@log_stream": "nodejs-app/blue-green-task/9f158062-346b-4a07-b2d3-e6bdd9321dee"
},
"fields": {
"@timestamp": [
1483425985785
]
}
}
Someone kindly suggest how to proceed further.
Regards,
Raja