# Setup Alert for Kibana

**URL:** <https://discuss.elastic.co/t/setup-alert-for-kibana/263753>\
**Category:** Kibana\
**Tags:** elastic-stack-security, elastic-stack-alerting\
**Created:** [February 9, 2021, 3:21pm UTC](https://discuss.elastic.co/t/setup-alert-for-kibana/263753 "2021-02-09T15:21:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nguyenduyhung1979](https://avatars.discourse-cdn.com/v4/letter/n/4491bb/32.png) [@nguyenduyhung1979](https://discuss.elastic.co/u/nguyenduyhung1979)\
**Post date:** [February 9, 2021, 3:21pm UTC](https://discuss.elastic.co/t/setup-alert-for-kibana/263753/1 "2021-02-09T15:21:48Z")

</div>

I have ELK stack (version 7.9.3) system work well in Windows with default setting. I tried to configure Alert for Kibana by following steps:

- Stop all services
- Update the following settings in the kibana.yml configuration file:  
**elasticsearch.username: "kibana"**  
**elasticsearch.password: "whatever"**
- Update the following settings in the elasticsearch.yml configuration file  
**xpack.security.enabled: true**
- Start ElasticSearch service
- Run command:  
**E:\ELK\elasticsearch\7.9.3\bin\>elasticsearch-setup-passwords -interactive**
- Open ElasticSearch page ([http://localhost:9200](http://localhost:9200)) and try to login by using build-in user (elastic/changeme) to login but I got error: failed to authenticate user [elastic]

I think I miss some steps to setup security for ElasticSearch. Could you help?

Thanks,

---

<div class="post-metadata">

**Author:** ![nguyenduyhung1979](https://avatars.discourse-cdn.com/v4/letter/n/4491bb/32.png) [@nguyenduyhung1979](https://discuss.elastic.co/u/nguyenduyhung1979)\
**Post date:** [February 10, 2021, 3:59pm UTC](https://discuss.elastic.co/t/setup-alert-for-kibana/263753/2 "2021-02-10T15:59:22Z")

</div>

I found the error in the commandline. The "interactive" parameter doesn't have "-". It should be like below:

**E:\ELK\elasticsearch\7.9.3\bin\>elasticsearch-setup-passwords interactive**

---

<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:** [March 10, 2021, 4:00pm UTC](https://discuss.elastic.co/t/setup-alert-for-kibana/263753/3 "2021-03-10T16:00:18Z")

</div>

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