From 116ed6dfc7591d7b8ba1c940320ebc31a2da6131 Mon Sep 17 00:00:00 2001 From: Florian GAULTIER Date: Tue, 28 May 2019 21:39:06 +0200 Subject: [PATCH] Add related_events to artifcats --- elastalert/alerts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/elastalert/alerts.py b/elastalert/alerts.py index cb0dc654e..cbc342c76 100644 --- a/elastalert/alerts.py +++ b/elastalert/alerts.py @@ -2193,6 +2193,9 @@ def alert(self, matches): artifacts = [] for match in matches: artifacts += self.create_artifacts(match) + if 'related_events' in match: + for related_event in match['related_events']: + artifacts += self.create_artifacts(related_event) alert_config['artifacts'] = artifacts alert_config['title'] = self.create_title(matches)