rama krishna
rama krishna

Reputation: 17

elastalert configure slack notification

hi trying configure slack notification in test.yaml file , getting the below error ERROR:root:Could not load rule /opt/rules/test.yaml: Error initiating alert ['slack', {'slack_webhook_url': 'https://hooks.slack.com/servichttps://hooks.slack.com/services/abcd'}]: Could not import module slack_webhook_url: need more than 1 value to unpack alert: "slack" slack_webhook_url: "https://hooks.slack.com/servichttps://hooks.slack.com/services/abcd" is this the correct way to define the slack alert

Upvotes: 0

Views: 4456

Answers (1)

XOR-Manik
XOR-Manik

Reputation: 503

Make sure you follow the spaces correctly and you are providing all the required arguments:

alert:
 - "slack"
 slack:
 slack_webhook_url: "YOUR URL"

It should work.

Upvotes: 5

Related Questions