From f0db3742ded94953f2030085231aeea374d44f46 Mon Sep 17 00:00:00 2001 From: blotus Date: Thu, 23 Sep 2021 13:52:05 +0200 Subject: [PATCH] fix usage of regex.Match in cloudwatch module (#986) --- pkg/acquisition/modules/cloudwatch/cloudwatch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/acquisition/modules/cloudwatch/cloudwatch.go b/pkg/acquisition/modules/cloudwatch/cloudwatch.go index 8aa4e91f5..227989a6b 100644 --- a/pkg/acquisition/modules/cloudwatch/cloudwatch.go +++ b/pkg/acquisition/modules/cloudwatch/cloudwatch.go @@ -329,7 +329,7 @@ func (cw *CloudwatchSource) LogStreamManager(in chan LogStreamTailConfig, outCha } if cw.Config.StreamRegexp != nil { - match, err := regexp.Match(newStream.StreamName, []byte(*cw.Config.StreamRegexp)) + match, err := regexp.Match(*cw.Config.StreamRegexp, []byte(newStream.StreamName)) if err != nil { cw.logger.Warningf("invalid regexp : %s", err) } else {