From 00e6cbc21bfcf7e4e118033e37e9c46877404d05 Mon Sep 17 00:00:00 2001 From: Zhonghui Hu Date: Fri, 20 Nov 2020 17:14:27 -0800 Subject: [PATCH] Update the retention policy of existing log groups --- cloudwatch/cloudwatch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudwatch/cloudwatch.go b/cloudwatch/cloudwatch.go index 3958f5f..1fdb4a9 100644 --- a/cloudwatch/cloudwatch.go +++ b/cloudwatch/cloudwatch.go @@ -582,7 +582,7 @@ func (output *OutputPlugin) createLogGroup(e *Event) error { } logrus.Infof("[cloudwatch %d] Log group %s already exists\n", output.PluginInstanceID, e.group) - return nil + return output.setLogGroupRetention(e.group) } func (output *OutputPlugin) setLogGroupRetention(name string) error {