-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alerting with email as a destination not working in version 13.1.0.1. #101
Comments
Hi, |
Hai, |
@qreshi Could you pls triage this. |
Hey @Kanmanir, I can take a closer look at this. Would you able to answer a couple questions for me to get some more details on the issue?
|
Hi Qreshi, I didn't try the older version of ODFE. The docker image tag for both we are using is 1.13.2 and 1.13.0.0 is the alerting plugin version. sh-4.2$ ./bin/elasticsearch-plugin list sh-4.2$ ./bin/kibana-plugin list Which version of alerting plugin you want me to try? I will install it and update you. Ans 2 : We have elasticsearch cluster setup with 4 nodes. I executed add command in all the node as per opendistro documentation. I configured outlook365 as SMTP host and tried to send test mail. I am not getting any error in logs in kibana as well as in elasticsearch. sh-4.2$ ./bin/elasticsearch-keystore list The keystore list command is listing the output as above. so, I think credentials are getting added properly. |
Hmm, assuming your trigger conditions are being met and the Action is being executed, are you seeing the following log messages in your
It should give us some insight into whether or not the email action is failing. Also, did you add the credentials to the keystore while ES was already running? If so, you might want to call the |
I have tried to configured the email alerting with latest version (1.13.1.0) alerting plugin. Now its working fine. Thanks for helping me. |
Hey @Kanmanir, Before closing this out, to understand better, did you see any errors in the ES logs for the previous version you used when sending the message and/or did you add your keystore settings while ES was running and not call the I ask since I don't believe Alerting 1.13.1.0 made any changes that were related to the Email Destination so if it works there, it should have worked in 1.13.0.1. |
Hi, I think i facing the same issue on opensearch 1.2.1, the latest version.
|
@AndreyByhalenko Have you double checked the email address that is being used? Based on this error, the email address is not valid. |
@lezzago hi, the issue was solved, thank you. |
Closing |
I'm using OSD 1.2.0 |
@Sandy381 Looks like you've already found your way to opensearch-project/reporting#72, that would be the best place to continue discussions as it pertains to Reporting integrating with the Notifications plugin. |
Issue by Kanmanir
Wednesday May 26, 2021 at 09:44 GMT
Originally opened as opendistro-for-elasticsearch/alerting#382
Alerting with email as a destination not working in version 13.1.0.1.
I have added email as a destination , I followed procedure given on official page
./bin/elasticsearch-keystore add opendistro.alerting.destination.email.xxxx.username
./bin/elasticsearch-keystore add opendistro.alerting.destination.email.xxxx.password
when tried to see what is the code used in elasticsearch-keystore, I found out it uses a class KeyStoreCli.
But KeyStoreCli class "org.elasticsearch.common.settings.KeyStoreCli" is not available in 7.10.2 in javadocs instead it has class BaseKeyStoreCommand
https://www.javadoc.io/doc/org.elasticsearch/elasticsearch/7.10.2/org/elasticsearch/common/settings/BaseKeyStoreCommand.html
keyStoreCli class is available upto 7.7.1 in javadocs
https://www.javadoc.io/doc/org.elasticsearch/elasticsearch/7.7.1/org/elasticsearch/common/settings/KeyStoreCli.html
But in opendistro version 1.13.0.1 has jar available for KeyStoreCli
/usr/share/elasticsearch/lib/tools/keystore-cli and this jar containes the KeyStoreCli.class
[root@3995dd7839e7 keystore-cli]# jar xvf keystore-cli-7.10.2.jar
created: META-INF/
inflated: META-INF/MANIFEST.MF
inflated: META-INF/LICENSE.txt
inflated: META-INF/NOTICE.txt
created: org/
created: org/elasticsearch/
created: org/elasticsearch/common/
created: org/elasticsearch/common/settings/
inflated: org/elasticsearch/common/settings/ AddFileKeyStoreCommand.class
inflated: org/elasticsearch/common/settings/KeyStoreCli.class
inflated: org/elasticsearch/common/settings/CreateKeyStoreCommand.class
inflated: org/elasticsearch/common/settings/ListKeyStoreCommand.class
inflated: org/elasticsearch/common/settings/RemoveSettingKeyStoreCommand.class
inflated: org/elasticsearch/common/settings/AddStringKeyStoreCommand.class
it is using this lib and class why email destination not working, and I am not able to get where it is storing credentials of sender configured from destination.
Can anybody help with configuring email destination and make it work for alerting.
The text was updated successfully, but these errors were encountered: