We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1df4b15 commit d02215bCopy full SHA for d02215b
plugins/alerts/main.go
@@ -115,6 +115,9 @@ func isDuplicate(alert *plugins.Alert) bool {
115
// 1. Filter by Name (always)
116
bb.FilterTerm("name", alert.Name)
117
118
+ bb.FilterRange("@timestamp", "gte", time.Now().UTC().Add(-24*7*time.Hour).Format(time.RFC3339Nano))
119
+ bb.FilterRange("@timestamp", "lte", time.Now().UTC().Format(time.RFC3339Nano))
120
+
121
// Compile regex for array index stripping
122
reArrayIndex := regexp.MustCompile(`\.[0-9]+(\.|$)`)
123
0 commit comments