# Right configuration to send email (SES) alerts in ELK

**URL:** <https://discuss.elastic.co/t/right-configuration-to-send-email-ses-alerts-in-elk/214893>\
**Category:** Elasticsearch\
**Created:** [January 13, 2020, 7:35pm UTC](https://discuss.elastic.co/t/right-configuration-to-send-email-ses-alerts-in-elk/214893 "2020-01-13T19:35:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vpuvvala](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@vpuvvala](https://discuss.elastic.co/u/vpuvvala)\
**Post date:** [January 13, 2020, 7:35pm UTC](https://discuss.elastic.co/t/right-configuration-to-send-email-ses-alerts-in-elk/214893/1 "2020-01-13T19:35:10Z")

</div>

Hello,

I'm trying to configure email notification alerts from Elasticsearch using SES SMTP server.

Elasticsearch version: 7.4.2

Configuration:

```auto
volumeMounts:
     - name: keystore
              mountPath: /usr/share/elasticsearch/config/elasticsearch.keystore
              subPath: elasticsearch.keystore
volumes:
    - name: keystore
          secret:
            secretName: elastic-keystore

```

I have created a secret:

```auto
kubectl create secret generic elastic-keystore --from-literal=xpack.notification.email.account.ses_account.smtp.secure_password=xxxx

```

and currently facing error:

```auto
Exception in thread "main" org.elasticsearch.bootstrap.BootstrapException: java.io.IOException: Is a directory: SimpleFSIndexInput(path="/usr/share/elasticsearch/config/elasticsearch.keystore")
Likely root cause: java.io.IOException: Is a directory
        at java.base/sun.nio.ch.FileDispatcherImpl.read0(Native Method)
        at java.base/sun.nio.ch.FileDispatcherImpl.read(FileDispatcherImpl.java:48)
        at java.base/sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:276)
        at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:245)
        at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:223)
        at org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput.readInternal(SimpleFSDirectory.java:178)
        at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:342)
        at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:54)
        at org.apache.lucene.store.BufferedChecksumIndexInput.readByte(BufferedChecksumIndexInput.java:41)
        at org.apache.lucene.store.DataInput.readInt(DataInput.java:101)
        at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:194)
        at org.elasticsearch.common.settings.KeyStoreWrapper.load(KeyStoreWrapper.java:223)
        at org.elasticsearch.bootstrap.Bootstrap.loadSecureSettings(Bootstrap.java:234)
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:305)
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159)
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150)
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:125)
        at org.elasticsearch.cli.Command.main(Command.java:90)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92)

```

Not sure where I'm going wrong, could any help me resolve this ?

Thanks,  
Vin.

---

<div class="post-metadata">

**Author:** ![alpert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alpert/32/3500_2.png) [@alpert](https://discuss.elastic.co/u/alpert)\
**Post date:** [January 13, 2020, 9:52pm UTC](https://discuss.elastic.co/t/right-configuration-to-send-email-ses-alerts-in-elk/214893/2 "2020-01-13T21:52:28Z")

</div>

The error message simple says:

> [@vpuvvala](#):
>
> /usr/share/elasticsearch/config/elasticsearch.keystore

is a directory rather than a simple file.

---

<div class="post-metadata">

**Author:** ![vpuvvala](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@vpuvvala](https://discuss.elastic.co/u/vpuvvala)\
**Post date:** [January 13, 2020, 10:02pm UTC](https://discuss.elastic.co/t/right-configuration-to-send-email-ses-alerts-in-elk/214893/3 "2020-01-13T22:02:03Z")

</div>

But I believe /usr/share/elasticsearch/config/elasticsearch.keystore is supposed to be file, if not what could be the correct configuration ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 10, 2020, 10:02pm UTC](https://discuss.elastic.co/t/right-configuration-to-send-email-ses-alerts-in-elk/214893/4 "2020-02-10T22:02:11Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
