This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
Alerting with email as a destination not working in version 13.1.0.1. #382
Labels
bug
Something isn't working
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: