# About Rollup policy

**URL:** <https://discuss.elastic.co/t/about-rollup-policy/189946>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [July 11, 2019, 8:58am UTC](https://discuss.elastic.co/t/about-rollup-policy/189946 "2019-07-11T08:58:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sairus\_Sairus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sairus_sairus/32/49871_2.png) [@Sairus\_Sairus](https://discuss.elastic.co/u/Sairus_Sairus)\
**Post date:** [July 11, 2019, 8:58am UTC](https://discuss.elastic.co/t/about-rollup-policy/189946/1 "2019-07-11T08:58:19Z")

</div>

Hi,

I have issue about my lifecycle Policies, all time I try to set to put one on my logstash index, I got error about it.

Message =\> Index lifecycle error  
illegal\_argument\_exception: index name [logstash] does not match pattern '^.\*-\d+$'

my index management settings :  
\<{  
"settings": {  
"index": {  
"lifecycle": {  
"name": "logstash-1H",  
"rollover\_alias": "alias1h"  
},  
"number\_of\_shards": "1",  
"provided\_name": "logstash",  
"creation\_date": "1562832051128",  
"priority": "100",  
"number\_of\_replicas": "1",  
"uuid": "frp\_ZJAQRtWz-sOrysGfWQ",  
"version": {  
"created": "7010199"  
}  
}  
},  
"defaults": {  
"index": {  
"max\_inner\_result\_window": "100",  
"unassigned": {  
"node\_left": {  
"delayed\_timeout": "1m"  
}  
},  
"max\_terms\_count": "65536",  
"lifecycle": {  
"indexing\_complete": "false"  
},  
"routing\_partition\_size": "1",  
"force\_memory\_term\_dictionary": "false",  
"max\_docvalue\_fields\_search": "100",  
"merge": {  
"scheduler": {  
"max\_thread\_count": "1",  
"auto\_throttle": "true",  
"max\_merge\_count": "6"  
},  
"policy": {  
"reclaim\_deletes\_weight": "2.0",  
"floor\_segment": "2mb",  
"max\_merge\_at\_once\_explicit": "30",  
"max\_merge\_at\_once": "10",  
"max\_merged\_segment": "5gb",  
"expunge\_deletes\_allowed": "10.0",  
"segments\_per\_tier": "10.0",  
"deletes\_pct\_allowed": "33.0"  
}  
},  
"max\_refresh\_listeners": "1000",  
"max\_regex\_length": "1000",  
"load\_fixed\_bitset\_filters\_eagerly": "true",  
"number\_of\_routing\_shards": "1",  
"write": {  
"wait\_for\_active\_shards": "1"  
},  
"mapping": {  
"coerce": "false",  
"nested\_fields": {  
"limit": "50"  
},  
"nested\_objects": {  
"limit": "10000"  
},  
"depth": {  
"limit": "20"  
},  
"ignore\_malformed": "false",  
"total\_fields": {  
"limit": "1000"  
}  
},  
"source\_only": "false",  
"soft\_deletes": {  
"enabled": "false",  
"retention": {  
"operations": "0"  
},  
"retention\_lease": {  
"period": "12h"  
}  
},  
"max\_script\_fields": "32",  
"query": {  
"default\_field": [  
"\*"  
],  
"parse": {  
"allow\_unmapped\_fields": "true"  
}  
},  
"format": "0",  
"frozen": "false",  
"sort": {  
"missing": ,  
"mode": ,  
"field": ,  
"order":   
},  
"codec": "default",  
"max\_rescore\_window": "10000",  
"max\_adjacency\_matrix\_filters": "100",  
"analyze": {  
"max\_token\_count": "10000"  
},  
"gc\_deletes": "60s",  
"optimize\_auto\_generated\_id": "true",  
"max\_ngram\_diff": "1",  
"translog": {  
"generation\_threshold\_size": "64mb",  
"flush\_threshold\_size": "512mb",  
"sync\_interval": "5s",  
"retention": {  
"size": "512mb",  
"age": "12h"  
},  
"durability": "REQUEST"  
},  
"auto\_expand\_replicas": "false",  
"mapper": {  
"dynamic": "true"  
},  
"requests": {  
"cache": {  
"enable": "true"  
}  
},  
"data\_path": "",  
"highlight": {  
"max\_analyzed\_offset": "1000000"  
},  
"routing": {  
"rebalance": {  
"enable": "all"  
},  
"allocation": {  
"enable": "all",  
"total\_shards\_per\_node": "-1"  
}  
},  
"search": {  
"slowlog": {  
"level": "TRACE",  
"threshold": {  
"fetch": {  
"warn": "-1",  
"trace": "-1",  
"debug": "-1",  
"info": "-1"  
},  
"query": {  
"warn": "-1",  
"trace": "-1",  
"debug": "-1",  
"info": "-1"  
}  
}  
},  
"idle": {  
"after": "30s"  
},  
"throttled": "false"  
},  
"fielddata": {  
"cache": "node"  
},  
"default\_pipeline": "\_none",  
"max\_slices\_per\_scroll": "1024",  
"shard": {  
"check\_on\_startup": "false"  
},  
"xpack": {  
"watcher": {  
"template": {  
"version": ""  
}  
},  
"version": "",  
"ccr": {  
"following\_index": "false"  
}  
},  
"percolator": {  
"map\_unmapped\_fields\_as\_text": "false"  
},  
"allocation": {  
"max\_retries": "5"  
},  
"refresh\_interval": "1s",  
"indexing": {  
"slowlog": {  
"reformat": "true",  
"threshold": {  
"index": {  
"warn": "-1",  
"trace": "-1",  
"debug": "-1",  
"info": "-1"  
}  
},  
"source": "1000",  
"level": "TRACE"  
}  
},  
"compound\_format": "0.1",  
"blocks": {  
"metadata": "false",  
"read": "false",  
"read\_only\_allow\_delete": "false",  
"read\_only": "false",  
"write": "false"  
},  
"max\_result\_window": "10000",  
"store": {  
"stats\_refresh\_interval": "10s",  
"type": "",  
"fs": {  
"fs\_lock": "native"  
},  
"preload":   
},  
"queries": {  
"cache": {  
"enabled": "true"  
}  
},  
"warmer": {  
"enabled": "true"  
},  
"max\_shingle\_diff": "3",  
"query\_string": {  
"lenient": "false"  
}  
}  
}  
}

> 

My index lifecycle Policies:  
\<  
"logstash-1H" : {  
"version" : 1,  
"modified\_date" : "2019-07-11T07:58:44.826Z",  
"policy" : {  
"phases" : {  
"hot" : {  
"min\_age" : "0ms",  
"actions" : {  
"rollover" : {  
"max\_size" : "1gb",  
"max\_age" : "30d"  
},  
"set\_priority" : {  
"priority" : 100  
}  
}  
}  
}  
}  
}

> 

Can You please help me.

---

<div class="post-metadata">

**Author:** ![gbrown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gbrown/32/34482_2.png) [@gbrown](https://discuss.elastic.co/u/gbrown)\
**Post date:** [July 12, 2019, 10:09pm UTC](https://discuss.elastic.co/t/about-rollup-policy/189946/2 "2019-07-12T22:09:59Z")

</div>

In order to be used with the Rollover API (which is what ILM is using under the hood) the index must end with a number, usually of the form `<my_index_name>-000001`.

If you're using Logstash version 7.0.0 or later, it might be easier to use [Logstash's built-in ILM support](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-ilm), which can set up your index for use with ILM automatically.

---

<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:** [August 9, 2019, 10:10pm UTC](https://discuss.elastic.co/t/about-rollup-policy/189946/3 "2019-08-09T22:10:04Z")

</div>

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