I'm running datadog agent container in EC2 by configuring task definition in AWS ECS.
But at this time, the huge amount of logs is stored in /var/lib/docker/containers/ContainerID/ContainerID.json so that I want to rotate it.
In Docker documents, I saw this link.
There are
"log-opts": {
"max-size": "10m",
"max-file": "3"
Now I want to config these options through task definition but I don't know the convention of them. Did anyone have any ideas?