hello!
Here is the configuration used::
/etc/elasticsearch/elasticsearch.yml
xpack.notification.email.account:
gmail_account:
profile: gmail
smtp:
auth: true
starttls.enable: true
host: smtp.gmail.com
port: 587
user: ###@gmail.com
password: <####>
root@test-ubuntu:/etc/elasticsearch# /usr/share/elasticsearch/bin/elasticsearch-keystore add xpack.notification.email.account.gmail_account.smtp.secure_password
Enter value for xpack.notification.email.account.gmail_account.smtp.secure_password:
root@test-ubuntu:/etc/elasticsearch# sudo systemctl start elasticsearch
so the following error is displayed
Job for elasticsearch.service failed because the control process exited with error code.
See "systemctl status elasticsearch.service" and "journalctl -xe" for details.