Open MrSsunlight opened 6 years ago
alert: debug email email:
user: "xxxxx@gmail.com" password: "password"
You ran the test and got 0 hits. That's probably because you have
- term:
message: ".*"
term filter does not work with regex. Just remove it. See https://www.elastic.co/guide/en/elasticsearch/reference/6.4/query-dsl-term-filter.html.
If ElastAlert actually tries to send an email, you'll see Sending email to [....]
in the logs.
"How to view the log of smtp server, where is it located?" The SMTP server is mail.topsec.com.cn or if you leave it commented out, it will try localhost. If there's an error in connecting to the server you should see that in the logs too.
Centos7.2 ELK 6.4.3 elastalert images is bitsensor/elastalert:latest
docker-compose.yml is:
my rule file is:
the test rules result is:
My elastalert is running normally, but I have not received any email alerts. How can I debug? How to view the log of smtp server, where is it located?