Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

使用elasticsearch8.x 运行watchad.py 时提示put template出错 该怎么解决? #48

Open
vincentlqq opened this issue Jul 22, 2022 · 0 comments

Comments

@vincentlqq
Copy link

2022-07-23 01:19:14,188 - WatchAD - INFO - put template "dc_log_template" ...
Traceback (most recent call last):
File "WatchAD.py", line 159, in
main()
File "WatchAD.py", line 145, in main
install(domain=options.domain, server=options.server, user=options.username, password=options.password)
File "WatchAD.py", line 31, in install
init_es_template()
File "/root/WatchAD/scripts/init_settings.py", line 41, in init_es_template
es.put_template(name=name, body=temp)
File "/root/WatchAD/tools/database/ElsaticHelper.py", line 71, in put_template
return self.es.indices.put_template(name=name, body=body, create=True, **kwargs)
File "/usr/local/lib/python3.6/site-packages/elasticsearch/_sync/client/utils.py", line 414, in wrapped
return api(*args, **kwargs)
TypeError: put_template() got an unexpected keyword argument 'template'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant