Docker Community Forums

Share and learn in the Docker community.

Awslogs-stream with Instance_ID as Tag


(Hubbleconnected) #1

Running 4 Docker Conatiner in 1 ASG instances stack (with 10 instances)

Using Docker AWS driver: awslogs for sending logs to Cloudwatch. The Log Stram name comes as full ID. How can we change it to get ConatnerName/Instance_ID

Compose file has folloing config

logging:
driver: awslogs
options:
awslogs-region: “us-east-1”
awslogs-group: “MyDockerLogs”