# Packetbeat, fail to set up index lifecyle policy

**URL:** <https://discuss.elastic.co/t/packetbeat-fail-to-set-up-index-lifecyle-policy/255139>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [November 12, 2020, 12:04am UTC](https://discuss.elastic.co/t/packetbeat-fail-to-set-up-index-lifecyle-policy/255139 "2020-11-12T00:04:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yanyan\_Liang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yanyan_liang/32/74142_2.png) [@Yanyan\_Liang](https://discuss.elastic.co/u/Yanyan_Liang)\
**Post date:** [November 12, 2020, 12:04am UTC](https://discuss.elastic.co/t/packetbeat-fail-to-set-up-index-lifecyle-policy/255139/1 "2020-11-12T00:04:38Z")

</div>

Hi Community,

I have tried to set up packetbeat index for 2 days, then rollover to delete phrase for 1 day. I have 1 node, for practice only.

This was my configuration in packetbeat.yml where I made changes, others remained as default. (Of course, I connected to ES and Kibana).

 ![conf1](https://us1.discourse-cdn.com/elastic/original/3X/f/f/ffa6ac054f027c835f3b0e3fd904bbf10792f834.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/6/d6e4f864f36cd2dcc682f2c2bdc4109b645009ff.png)

From kibana API, I created index lifecycle policy "p1" (10G, 2 days, hot phase; then delete phase) and linked to index template "packetbeat - 7.9.3"  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/3/63b52d328699e812ad461286763e06d295a74622.png)

but I noticed that "phase definition" still shows 50G, 30 days as default:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/f/8fbdb8e8e97f5d0b7029471172cde7a0e271b111.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/4/94bd279a01e967c1a60515b26672add3064c0dc3.png)

And after two days, I found that "p1" was modified to 50G, 30 days automatically, packetbeat index which started 2 days was deleted and now it starts a packetbeat index with all default settings, no lifecycle policy attached.

What was wrong? How can I set up a correct lifecycle?

Many many thanks!

---

<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:** [December 10, 2020, 2:04am UTC](https://discuss.elastic.co/t/packetbeat-fail-to-set-up-index-lifecyle-policy/255139/2 "2020-12-10T02:04:40Z")

</div>

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