Qianlitp / WatchAD

AD Security Intrusion Detection System
GNU General Public License v3.0
1.29k stars 295 forks source link

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

Open vincentlqq opened 2 years ago

vincentlqq commented 2 years ago

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'