Skip to content

Commit

Permalink
Update elastalert.py
Browse files Browse the repository at this point in the history
  • Loading branch information
luffynextgen authored Nov 17, 2023
1 parent 52b5db9 commit 087f0e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions elastalert/elastalert.py
Original file line number Diff line number Diff line change
Expand Up @@ -1350,10 +1350,10 @@ def send_alert(self, matches, rule, alert_time=None, retried=False):
matches[0]['kibana_discover_url'] = kb_link_formatter.format(kb_link)

if rule.get('generate_opensearch_discover_url'):
kb_link = generate_opensearch_discover_url(rule, matches[0])
if kb_link:
kb_link_formatter = self.get_opensearch_discover_external_url_formatter(rule)
matches[0]['opensearch_discover_url'] = kb_link_formatter.format(kb_link)
opsh_link = generate_opensearch_discover_url(rule, matches[0])
if opsh_link:
opsh_link_formatter = self.get_opensearch_discover_external_url_formatter(rule)
matches[0]['opensearch_discover_url'] = opsh_link_formatter.format(opsh_link)



Expand Down

0 comments on commit 087f0e7

Please sign in to comment.