# Curator for Elastic cluster with xpack

**URL:** <https://discuss.elastic.co/t/curator-for-elastic-cluster-with-xpack/148275>\
**Category:** Elasticsearch\
**Created:** [September 12, 2018, 7:56am UTC](https://discuss.elastic.co/t/curator-for-elastic-cluster-with-xpack/148275 "2018-09-12T07:56:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tushar\_raut](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@tushar\_raut](https://discuss.elastic.co/u/tushar_raut)\
**Post date:** [September 12, 2018, 7:56am UTC](https://discuss.elastic.co/t/curator-for-elastic-cluster-with-xpack/148275/1 "2018-09-12T07:56:04Z")

</div>

Hi,

I am trying to setup curator for my elastic cluster which is running on version 6.3.  
I have installed curator 5.5.4.

Curator yaml :

```auto
---
client:
  hosts:
    - ["node-1", "node-2", "node-3"]
  port: 9200
  url_prefix:
  use_ssl: False
  certificate:
  client_cert:
  client_key:
  ssl_no_validate: False
  http_auth:
  timeout: 30
  master_only: False
  username: elastic
  password: admin

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

```

While running curator with above configuration I am getting following errors:

[root@ELK-Setup-01 curator-test]# curator ./delete\_indices.yaml --config curator.yaml --dry-run  
No handlers could be found for logger "curator.validators.SchemaCheck"  
Traceback (most recent call last):  
File "/usr/bin/curator", line 11, in   
sys.exit(cli())  
File "/usr/lib/python2.7/site-packages/click/core.py", line 722, in **call**  
return self.main(\*args, \*\*kwargs)  
File "/usr/lib/python2.7/site-packages/click/core.py", line 697, in main  
rv = self.invoke(ctx)  
File "/usr/lib/python2.7/site-packages/click/core.py", line 895, in invoke  
return ctx.invoke(self.callback, \*\*ctx.params)  
File "/usr/lib/python2.7/site-packages/click/core.py", line 535, 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 106, in run  
client\_args = process\_config(config)  
File "/usr/lib/python2.7/site-packages/curator/config\_utils.py", line 37, in process\_config  
config = test\_config(yaml\_file)  
File "/usr/lib/python2.7/site-packages/curator/config\_utils.py", line 20, in test\_config  
'Client Configuration', 'full configuration dictionary').result()  
File "/usr/lib/python2.7/site-packages/curator/validators/schemacheck.py", line 69, in result  
self.test\_what, self.location, self.badvalue, self.error)  
curator.exceptions.ConfigurationError: Configuration: Client Configuration: Location: full configuration dictionary: Bad Value: "{'username': 'elastic', 'hosts': [['node-1', 'node-2', 'node-3']], 'timeout': 30, 'use\_ssl': False, 'password': 'admin', 'master\_only': False, 'port': 9200, 'ssl\_no\_validate': False}", extra keys not allowed @ data['client']['username']. Check configuration file.

Is curator supports elastic stack with x-pack?  
Is I am missing anything?

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [September 12, 2018, 1:15pm UTC](https://discuss.elastic.co/t/curator-for-elastic-cluster-with-xpack/148275/2 "2018-09-12T13:15:39Z")

</div>

I can't tell if your YAML is properly formatted. Please encapsulate pasted console output and config files inside triple back ticks, like this:

````
```
PASTED DATA
```

````

Based on the error, I think something is misconfigured.

---

<div class="post-metadata">

**Author:** ![tushar\_raut](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@tushar\_raut](https://discuss.elastic.co/u/tushar_raut)\
**Post date:** [September 14, 2018, 10:55am UTC](https://discuss.elastic.co/t/curator-for-elastic-cluster-with-xpack/148275/3 "2018-09-14T10:55:47Z")

</div>

Thank you @theuntergeek for suggesting format.

I have edited my post.

Apart from this I have question about Is curator support for x-pack or elastic cluster?  
Can you please provide the relevant article/document if any.

Thank you.

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [September 14, 2018, 12:58pm UTC](https://discuss.elastic.co/t/curator-for-elastic-cluster-with-xpack/148275/4 "2018-09-14T12:58:45Z")

</div>

> [@tushar\_raut](#):
>
> ```auto
> hosts:
> - ["node-1", "node-2", "node-3"]
> 
> ```

This syntax is incorrect. You are mixing multiple array syntaxes. It should be one of:

```auto
hosts: ["node-1", "node-2", "node-3"]

```

or

```auto
hosts:
  - "node-1"
  - "node-2"
  - "node-3"

```

(also note that I indented 2 spaces, rather than 1 for the second example).

See the [official YAML sequence documentation](http://yaml.org/spec/1.0/#type-seq) for more information.

---

<div class="post-metadata">

**Author:** ![tushar\_raut](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@tushar\_raut](https://discuss.elastic.co/u/tushar_raut)\
**Post date:** [September 14, 2018, 1:15pm UTC](https://discuss.elastic.co/t/curator-for-elastic-cluster-with-xpack/148275/5 "2018-09-14T13:15:00Z")

</div>

From the error msg

> curator.exceptions.ConfigurationError: Configuration: Client Configuration: Location: full configuration dictionary: Bad Value: "{'username': 'elastic', 'hosts': ['node-1', 'node-2', 'node-3'], 'timeout': 30, 'use\_ssl': False, 'password': 'admin@123', 'master\_only': False, 'port': 9200, 'ssl\_no\_validate': False}", extra keys not allowed @ data['client']['username']. Check configuration file.

Seems username field does not have support in curator.

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [September 17, 2018, 4:07am UTC](https://discuss.elastic.co/t/curator-for-elastic-cluster-with-xpack/148275/6 "2018-09-17T04:07:47Z")

</div>

That's what the `http_auth` field is for:

```auto
http_auth: "username:password"

```

This is being addressed in the next release of Curator, though.

---

<div class="post-metadata">

**Author:** ![tushar\_raut](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@tushar\_raut](https://discuss.elastic.co/u/tushar_raut)\
**Post date:** [September 17, 2018, 4:42am UTC](https://discuss.elastic.co/t/curator-for-elastic-cluster-with-xpack/148275/7 "2018-09-17T04:42:01Z")

</div>

@theuntergeek, Got it.  
It is working now, somehow I missed this field.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 15, 2018, 4:42am UTC](https://discuss.elastic.co/t/curator-for-elastic-cluster-with-xpack/148275/8 "2018-10-15T04:42:11Z")

</div>

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