Hi,
i am using elk stack with version 7.1.0 with x-pack
and i want to snapshot the index using curator and when im executing the curator im getting the following errors :
ig ./curator.yml --dry-run
2019-08-26 15:02:25,092 INFO Preparing Action ID: 1, "snapshot"
Traceback (most recent call last):
File "/home/vagrant/.local/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 27, in <module>
File "run_curator.py", line 8, in <module>
File "/tmp/curator/curator-4.1.2/curator/curator.py", line 5, in main
File "/home/vagrant/.local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
File "/home/vagrant/.local/lib/python2.7/site-packages/click/core.py", line 696, in main
File "/home/vagrant/.local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
File "/home/vagrant/.local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
File "/tmp/curator/curator-4.1.2/curator/cli.py", line 165, in cli
File "/tmp/curator/curator-4.1.2/curator/utils.py", line 587, in get_client
elasticsearch.exceptions.ElasticsearchException: Unable to create client connection to Elasticsearch. Error: TransportError(401, u'security_exception', u'missing authentication credentials for REST request [/]')
command used :
sudo curator ./snapshots.yml --config ./curator.yml --dry-run
and i also tried passing the credentials
sudo curator ./snapshots.yml --config ./curator.yml -u vamsi:qolsys --dry-run
errors :
Error: no such option: -u
Please help me solve it.