add match check

This commit is contained in:
Aaron Stein 2019-08-23 13:28:14 -07:00
parent df8b175e86
commit ea59ce899b

View file

@ -137,6 +137,9 @@ func (r RSysLogMessage) String() string {
func splitAWSBatch(b LogEventBatch) []RSysLogMessage {
matches := awsBatchTaskRegex.FindAllStringSubmatch(b.LogStream, 1)
if len(matches) != 1 {
return nil
}
env := matches[0][1]
app := matches[0][2]
task := matches[0][3]