# Elastalert module error

**URL:** <https://discuss.elastic.co/t/elastalert-module-error/265723>\
**Category:** Elasticsearch\
**Created:** [February 28, 2021, 1:29pm UTC](https://discuss.elastic.co/t/elastalert-module-error/265723 "2021-02-28T13:29:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarmad](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Sarmad](https://discuss.elastic.co/u/Sarmad)\
**Post date:** [February 28, 2021, 1:29pm UTC](https://discuss.elastic.co/t/elastalert-module-error/265723/1 "2021-02-28T13:29:15Z")

</div>

Hi, I am trying to setup elastalert on Amazon Linux ami but getting this screenshot error when I run elastalert

`python3 -m elastalert.elastalert --verbose --rule example_rules/example_frequency.yaml`

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/5/15bdcbe2cc648c29b3270bd7893bc1c85251ec89.png)

I have tried with python as well instead of python 3, but didn't work.  
When I install the elastalert module through pip, it says it's already installed. I have removed and reinstalled it as well, but no luck. Help please.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 28, 2021, 11:01pm UTC](https://discuss.elastic.co/t/elastalert-module-error/265723/2 "2021-02-28T23:01:52Z")

</div>

Hopefully someone will have seen this and can assist, but otherwise you will need to contact the developer of this tool as it's not something we develop or support sorry to say.

---

<div class="post-metadata">

**Author:** ![Sarmad](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Sarmad](https://discuss.elastic.co/u/Sarmad)\
**Post date:** [March 1, 2021, 7:16am UTC](https://discuss.elastic.co/t/elastalert-module-error/265723/3 "2021-03-01T07:16:52Z")

</div>

Hi, Thanks.

I installed elastalert on another ubuntu machine,  
and added (aws)elk server's IP in elastalert's config file(es\_host).

Works fine. Thanks.

---

<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 29, 2021, 7:17am UTC](https://discuss.elastic.co/t/elastalert-module-error/265723/4 "2021-03-29T07:17:27Z")

</div>

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