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'
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'