1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/logger
Yong Tang 864b0c2e47 Support of CreateLogGroup for awslogs
This fix tries to address the issue raised in 29344 where it was
not possible to create log group for awslogs (CloudWatch) on-demand.
Log group has to be created explicitly before container is running.

This behavior is inconsistent with AWS logs agent where log groups
are always created as needed.

There were several concerns previously (See comments in 19617 and 29344):
1. There is a limit of 500 log groups/account/region so resource might
be exhausted if there is any typo or incorrect region.
2. Logs are generated for every container so CreateLogGroup (or equally,
DescribeLogGroups) might be called every time, which is redundant and
potentially surprising.
3. CreateLogStream and CreateLogGroup have different IAM policies.

This fix addresses the issue by add `--log-opt awslogs-create-group`
which by default is `false`. It requires user to explicitly request
that log groups be created as needed.

Related unit test has been updated. And tests have also been done
manually in AWS.

This fix fixes 29334.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-01-27 11:15:17 -08:00
..
awslogs Support of CreateLogGroup for awslogs 2017-01-27 11:15:17 -08:00
etwlogs fix syscall.GUID composite literal uses unkeyed fields 2017-01-03 17:12:15 +08:00
fluentd Rename 'context' to 'loginfo' in the logger module 2016-12-29 19:13:44 +08:00
gcplogs Merge pull request #28852 from miaoyq/rename-log-context 2016-12-30 01:13:49 +01:00
gelf Rename 'context' to 'loginfo' in the logger module 2016-12-29 19:13:44 +08:00
journald Rename 'context' to 'loginfo' in the logger module 2016-12-29 19:13:44 +08:00
jsonfilelog Close logwatcher on context cancellation 2017-01-17 14:36:13 -08:00
logentries Rename 'context' to 'loginfo' in the logger module 2016-12-29 19:13:44 +08:00
loggerutils Rename 'context' to 'loginfo' in the logger module 2016-12-29 19:13:44 +08:00
splunk Rename 'context' to 'loginfo' in the logger module 2016-12-29 19:13:44 +08:00
syslog Rename 'context' to 'loginfo' in the logger module 2016-12-29 19:13:44 +08:00
copier.go
copier_test.go
factory.go Rename 'context' to 'loginfo' in the logger module 2016-12-29 19:13:44 +08:00
logger.go remove client-side for supported logging drivers 2016-12-19 14:30:01 +01:00
logger_test.go Fix a error of the function 'CopyMessage' in 'daemon/logger/logger.go' 2016-11-24 20:08:54 +08:00
loginfo.go Rename 'context' to 'loginfo' in the logger module 2016-12-29 19:13:44 +08:00