# Set index name when first start metricbeat

**URL:** <https://discuss.elastic.co/t/set-index-name-when-first-start-metricbeat/186798>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [June 21, 2019, 5:17am UTC](https://discuss.elastic.co/t/set-index-name-when-first-start-metricbeat/186798 "2019-06-21T05:17:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Min\_Mah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/min_mah/32/46757_2.png) [@Min\_Mah](https://discuss.elastic.co/u/Min_Mah)\
**Post date:** [June 21, 2019, 5:17am UTC](https://discuss.elastic.co/t/set-index-name-when-first-start-metricbeat/186798/1 "2019-06-21T05:17:37Z")

</div>

When start metricbeat first time.  
it automatically make index name and lifecycle policy settings

i want to be modify like this

- index name : SystemInfo-7.1.0-000001
- lifecycle policy name: SystemInfo
- lifecycle policy option :

> {  
> "policy": {  
> "phases": {  
> "hot": {  
> "min\_age": "0ms",  
> "actions": {  
> "rollover": {  
> "max\_age": "7d",  
> "max\_size": "20gb"  
> },  
> "set\_priority": {  
> "priority": 100  
> }  
> }  
> },  
> "delete": {  
> "min\_age": "3d",  
> "actions": {  
> "delete": {}  
> } } } } }

so i just try modify in my metricbeat.yml like this

> setup.ilm.enabled: auto  
> setup.ilm.rollover\_alias: "SystemInfo-{agent.version}"  
> setup.ilm.pattern: "000001"  
> setup.ilm.policy\_name: "SystemInfo"

then i make only lifecycle policy - just name SystemInfo with automatically options  
and it doesn't make index anything.

how can i custom metricbeat index??  
and how can i custom lifecycle policy options??

THanks

---

<div class="post-metadata">

**Author:** ![Min\_Mah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/min_mah/32/46757_2.png) [@Min\_Mah](https://discuss.elastic.co/u/Min_Mah)\
**Post date:** [June 21, 2019, 8:55am UTC](https://discuss.elastic.co/t/set-index-name-when-first-start-metricbeat/186798/2 "2019-06-21T08:55:10Z")

</div>

solve.

---

<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:** [July 19, 2019, 8:55am UTC](https://discuss.elastic.co/t/set-index-name-when-first-start-metricbeat/186798/3 "2019-07-19T08:55:13Z")

</div>

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