Skip to content

Commit

Permalink
Add related_events to artifcats
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian GAULTIER committed Oct 21, 2019
1 parent f926dee commit 116ed6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions elastalert/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 116ed6d

Please sign in to comment.