2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
Hi, Good question
I think you can use
put-retention-policy
--log-group-name <value>
--retention-in-days <value>
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]
https://docs.aws.amazon.com/cli/latest/reference/logs/put-retention-policy.html
답변함 2년 전
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 일 년 전
Thanks! So there is no way that I can set this policy from task definitions?
I think It can only be done through CloudWatch. Docker has the following options and I can't seem to find anything related to
retention
https://docs.docker.com/config/containers/logging/local/