:wave: Hello, team! I have an issue with `edr moni...
# community-support
v
👋 Hello, team! I have an issue with
edr monitor
slack integration. Now I am testing the alert sending using CLI in dev mode, as did not succeed in sending alerts using Airflow in prod. When I run
edr report
, I get a report with dbt tests and anomalies, several anomalies are with status “warning”. So everything is ok on edr report side. There are today’s alerts in table name alerts_v2, but table alerts is not being updated. In table alerts_v2 alerts with the status “pending” and no sent_at date. Can you please help on this issue? 🙏🏼
i
Hey @Valerija Životkevič, care to share with us your edr.log? It will help us understand what might be the issue!
v
i
Hey @Valerija Životkevič, is that the full log?
v
this log was generated after i run edr monitor, yes thats all I hve
or what should I run in order to generate full log?
i
Got it 🙂 As I understand it it found no alerts to send. Can I ask what is the date of the alerts in your alerts_v2 table? Are they more than one day older?
v
detected_at different dates, created_at only todays’ date (I think it is the time i run edr_monitor for the first time today)
i
Are there any detected_at from the last 24 hours?
v
no 🫣, so that’s the reason, right?
i
Yes :) By default our alerts run only on the last 24 hours. You can control it by passing --days-back argument to the edr monitor command
LMK if that works for you!
v
ok, I’ll try it now, thanks!
@Idan Shavit, can you please help me further? got this error now:
Copy code
[31;20m2024-03-05 14:20:00 — ERROR — Failed to send a message to channel - data_anomalies. Error: The request to the Slack API failed. (url: <https://www.slack.com/api/chat.postMessage>)
The server responded with: {'ok': False, 'error': 'not_allowed_token_type'}[0m
token used is from the created elementary slack-app “App-Level Tokens”
i
Hey, sure 🙂 Did you follow the steps from our docs? https://docs.elementary-data.com/oss/guides/alerts/send-slack-alerts
The token should be created under the
OAauth & Permissions
and the scopes should be set under the
Bot Token Scopes
🙂
v
yees, it works now in my dev mode using CLI, thanks! having some issues in prod, if I can’t resolve on my own, will write to you. thank you for your assistance!! 🙇‍♀️
🐕 1
i
Happy to help 🙂 Feel free to reach out again!
v
Hello, Idan, can I ask for your help once again? 🙏🏻 I wrote to #C02CTC89LAX channel several times, but got no answer. Here is the isssue: https://elementary-community.slack.com/archives/C02CTC89LAX/p1710344270121429?thread_ts=1710250385.626209&amp;cid=C02CTC89LAX
i
Hey @Valerija Životkevič, it seems like @Ofek Weiss just replied to your issue 😎
🙇‍♀️ 1