У меня есть рой, и символические ссылки не определены.Но все же я мог видеть эту ошибку в контейнере jhipster -lerter.Не могли бы вы сказать мне, как решить?
Starting Alerting
Container timezone not modified
Elastalert index already exists in ES.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/opt/elastalert/elastalert/elastalert.py", line 1929, in
sys.exit(main(sys.argv[1:]))
File "/opt/elastalert/elastalert/elastalert.py", line 1923, in main
client = ElastAlerter(args)
File "/opt/elastalert/elastalert/elastalert.py", line 130, in init
self.conf = load_rules(self.args)
File "elastalert/config.py", line 488, in load_rules
raise EAException('Error loading file %s: %s' % (rule_file, e))
elastalert.util.EAException: Error loading file /opt/elastalert/rules/.snapshot/daily.2019-04-03_0010/r
Мой файл правил, как показано ниже.Это работает в среде compose, но не в среде docker swarm.
alert:
email
alert_subject: "ElastAlert Failed in {0}"
alert_subject_args:
deployment_environment_id
alert_text_type: alert_text_only
alert_text: " import attempted at {0} failed. I"
alert_text_args:
"@timestamp"
email:
ram@hsn.com
email_reply_to: noreply@hsn.com
filter:
query_string:
query: "message: import_failed"
from_addr: noreply@hsn.com
index: logstash-%Y.%m.%d*
name: import-failed
smtp_host: s97mhsn.com
type: any
use_strftime_index: true
Хранит .snapshot.Я хочу, чтобы этот снимок был удален, чтобы он заработал.Пожалуйста, помогите мне