# Help: Curator error and can't set path to config

**URL:** https://discuss.elastic.co/t/help-curator-error-and-cant-set-path-to-config/145261
**Category:** Elasticsearch
**Created:** [August 20, 2018, 11:23pm UTC](https://discuss.elastic.co/t/help-curator-error-and-cant-set-path-to-config/145261 "2018-08-20T23:23:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ELK\_believer](https://avatars.discourse-cdn.com/v4/letter/e/4bbf92/32.png) [@ELK\_believer](https://discuss.elastic.co/u/ELK_believer)
#### Post date: [August 20, 2018, 11:23pm UTC](https://discuss.elastic.co/t/help-curator-error-and-cant-set-path-to-config/145261/1 "2018-08-20T23:23:16Z")

</div>

Hello,

## I'm new to ELK running a the latest version and latest version of curator which I'm setting up for log retention. I have 1 Kibana box, 1 Logstash, 3 master nodes and 5 ES or data nodes. I have curator installed on 1 master node with 2 .yml files: curator.yml (config) and delete\_indices\_size\_base.yml (action). Both located in /usr/curator/ directory. My curator.yml contains: \<

# Remember, leave a key empty if there is no value. None will be a string,

# not a Python "NoneType"

client:  
hosts: ["10.x.x.x", "10.x.x.x", "..."] (abbrev. line for the post)  
port: 9200  
url\_prefix:  
use\_ssl: False  
certificate:  
client\_cert:  
client\_key:  
ssl\_no\_validate: False  
http\_auth:  
timeout: 30  
master\_only: False

## logging: loglevel: DEBUG logfile: logformat: default blacklist: ['elasticsearch', 'urllib3'] /\> action file contains: \<

actions:  
1:  
action: delete\_indices  
description: \>-  
Delete indices matching the prefix filebeat in excess of  
300GB of data (75% of 400GB) , starting with the oldest indices, based on index creation\_date.  
An empty index list (from no indices being in excess of the size limit, for  
example) will not generate an error.  
options:  
ignore\_empty\_list: True  
timeout\_override: 300  
continue\_if\_exception: False  
disable\_action: False  
filters:  
- filtertype: pattern  
kind: prefix  
value: filebeat-  
- filtertype: space  
disk\_space: 300  
use\_age: True  
source: creation\_date  
2:  
action: delete\_indices  
description: \>-  
Delete indices matching the prefix tomcat in excess of  
300GB of data (75% of 400GB) , starting with the oldest indices, based on index creation\_date.  
An empty index list (from no indices being in excess of the size limit, for  
example) will not generate an error.  
options:  
ignore\_empty\_list: True  
timeout\_override: 300  
continue\_if\_exception: False  
disable\_action: False  
filters:  
- filtertype: pattern  
kind: prefix  
value: syslog-  
- filtertype: space  
disk\_space: 300  
use\_age: True  
source: creation\_date  
3:  
action: delete\_indices  
description: \>-  
Delete indices matching the prefix tomcat in excess of  
300GB of data (75% of 400GB) , starting with the oldest indices, based on index creation\_date.  
An empty index list (from no indices being in excess of the size limit, for  
example) will not generate an error.  
options:  
ignore\_empty\_list: True  
timeout\_override: 300  
continue\_if\_exception: False  
disable\_action: False  
filters:  
- filtertype: pattern  
kind: prefix  
value: winlogbeat-  
- filtertype: space  
disk\_space: 300  
use\_age: True  
source: creation\_date  
/\>  
and the error I'm receiving when I ran curator --config curator.yml --dry-run delete\_indices\_size\_base.yml is:

\<  
File "/usr/lib/python2.7/site-packages/curator/utils.py", line 53, in get\_yaml  
cfg = yaml.load(raw)  
File "/usr/lib64/python2.7/site-packages/yaml/ **init**.py", line 71, in load  
return loader.get\_single\_data()  
File "/usr/lib64/python2.7/site-packages/yaml/constructor.py", line 37, in get\_single\_data  
node = self.get\_single\_node()  
File "/usr/lib64/python2.7/site-packages/yaml/composer.py", line 36, in get\_single\_node  
document = self.compose\_document()  
File "/usr/lib64/python2.7/site-packages/yaml/composer.py", line 55, in compose\_document  
node = self.compose\_node(None, None)  
File "/usr/lib64/python2.7/site-packages/yaml/composer.py", line 84, in compose\_node  
node = self.compose\_mapping\_node(anchor)  
File "/usr/lib64/python2.7/site-packages/yaml/composer.py", line 133, in compose\_mapping\_node  
item\_value = self.compose\_node(node, item\_key)  
File "/usr/lib64/python2.7/site-packages/yaml/composer.py", line 84, in compose\_node  
node = self.compose\_mapping\_node(anchor)  
File "/usr/lib64/python2.7/site-packages/yaml/composer.py", line 127, in compose\_mapping\_node  
while not self.check\_event(MappingEndEvent):  
File "/usr/lib64/python2.7/site-packages/yaml/parser.py", line 98, in check\_event  
self.current\_event = self.state()  
File "/usr/lib64/python2.7/site-packages/yaml/parser.py", line 439, in parse\_block\_mapping\_key  
"expected \<block end\>, but found %r" % token.id, token.start\_mark)  
yaml.parser.ParserError: while parsing a block mapping  
in "\<string\>", line 3, column 3:  
1:  
^  
expected \<block end\>, but found '\<block mapping start\>'  
in "\<string\>", line 41, column 4:  
3:  
/\>

Any help is greatly appreciated!

---

<div class="post-metadata">

### Author: ![ELK\_believer](https://avatars.discourse-cdn.com/v4/letter/e/4bbf92/32.png) [@ELK\_believer](https://discuss.elastic.co/u/ELK_believer)
#### Post date: [August 23, 2018, 8:17pm UTC](https://discuss.elastic.co/t/help-curator-error-and-cant-set-path-to-config/145261/2 "2018-08-23T20:17:41Z")

</div>

Got this working. My formatting was off!

---

<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: [September 20, 2018, 8:25pm UTC](https://discuss.elastic.co/t/help-curator-error-and-cant-set-path-to-config/145261/3 "2018-09-20T20:25:33Z")

</div>

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