Unable to create client connection to Elasticsearch from Curator


(Pradnya) #1

Hii,
while running command: " /usr/bin/curator --config /app/software/curator/curator-config.yml /app/software/curator/curator-action.yml "

getting error:
2018-10-03 16:11:25,641 INFO Preparing Action ID: 1, "delete_indices"
2018-10-03 16:11:25,645 WARNING GET http://10.26.24.19:9200/http://10.26.24.19:9200/metricbeat-*/ [status:400 request:0.001s]
Traceback (most recent call last):
File "/usr/bin/curator", line 11, in
sys.exit(cli())
File "/usr/lib64/python2.7/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib64/python2.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib64/python2.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/curator/cli.py", line 213, in cli
run(config, action_file, dry_run)
File "/usr/lib/python2.7/site-packages/curator/cli.py", line 160, in run
client = get_client(**client_args)
File "/usr/lib/python2.7/site-packages/curator/utils.py", line 907, in get_client
'Error: {0}'.format(e)
File "/usr/lib/python2.7/site-packages/elasticsearch/exceptions.py", line 58, in str
cause = ', %r' % self.info['error']['root_cause'][0]['reason']
TypeError: string indices must be integers

Curator Config.yml file is as below:
client:
hosts:
- 10.26.24.19:9200
url_prefix: http://10.26.24.19:9200/metricbeat-*
use_ssl: False
#certificate:
#client_cert:
#client_key:
ssl_no_validate: True

http_auth:

timeout: 30
master_only: False

logging:
loglevel: INFO
logfile:
logformat: default
blacklist: ['urllib3']

Kindly help.


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.