add match check
This commit is contained in:
parent
df8b175e86
commit
ea59ce899b
1 changed files with 3 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue