Yelp / elastalert

Easy & Flexible Alerting With ElasticSearch
https://elastalert.readthedocs.org
Apache License 2.0
8k stars 1.73k forks source link

Facing issue with MS teams while using Power automate feature #3306

Open ratnakumarchukkapalli opened 1 week ago

ratnakumarchukkapalli commented 1 week ago

Facing issue with MS teams while using Power automate feature.

I have created Workflow and copied the webhook. I have used Microsoft Power automate feature for sending alerts [https://elastalert2.readthedocs.io/en/latest/alerts.html#microsoft-teams feature ](https://elastalert2.readthedocs.io/en/latest/alerts.html#microsoft-power-automate)

Below is the configuration I have used for sending alerts using power automate but getting below error. Can anyone please help me to configure

alert:

elastalert.util.EAException: Error initiating alert ['ms_power_automate']: Could not import module ms_power_automate: not enough values to unpack (expected 2, got 1)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/bin/elastalert", line 8, in sys.exit(main()) ^^^^^^ File "/usr/local/lib/python3.12/site-packages/elastalert/elastalert.py", line 1916, in main client = ElastAlerter(args) ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/elastalert/elastalert.py", line 128, in init self.rules = self.rules_loader.load(self.conf, self.args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/elastalert/loaders.py", line 184, in load raise EAException('Error loading file %s: %s' % (rule_file, e)) elastalert.util.EAException: Error loading file rules/exceptions.yaml: Error initiating alert ['ms_power_automate']: Could not import module ms_power_automate: not enough values to unpack (expected 2, got 1)

ratnakumarchukkapalli commented 1 week ago

Team any help on this