# Packetbeat does not point to a write index

**URL:** <https://discuss.elastic.co/t/packetbeat-does-not-point-to-a-write-index/256478>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [November 24, 2020, 9:56am UTC](https://discuss.elastic.co/t/packetbeat-does-not-point-to-a-write-index/256478 "2020-11-24T09:56:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheHunter1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thehunter1/32/80190_2.png) [@TheHunter1](https://discuss.elastic.co/u/TheHunter1)\
**Post date:** [November 24, 2020, 9:56am UTC](https://discuss.elastic.co/t/packetbeat-does-not-point-to-a-write-index/256478/1 "2020-11-24T09:56:43Z")

</div>

Hello,

I tried to edit packetbeat Policy, and then from index management on Kibana I removed the policy from that index and then added it again (to take on consideration the new configuration),  
unfortunately I a getting a `lifecycle error`

```auto
illegal_argument_exception: rollover target [packetbeat-7.9.2] does not point to a write index

```

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/e/3e991a37b2eca92f2ab14b68fe974863f3b6eb2d.png)

I tried to run :

```auto
PUT packetbeat-7.9.2-2020.11.17-000002
{
  "aliases": {
    "packetbeat-7.9.2": {
      "is_write_index": true
    }
  }
}

```

But I got the error:

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "resource_already_exists_exception",
        "reason" : "index [packetbeat-7.9.2-2020.11.17-000002/oIsVi0TVS4WHHwoh4qgyPg] already exists",
        "index_uuid" : "oIsVi0TVS4WHHwoh4qgyPg",
        "index" : "packetbeat-7.9.2-2020.11.17-000002"
      }
    ],
    "type" : "resource_already_exists_exception",
    "reason" : "index [packetbeat-7.9.2-2020.11.17-000002/oIsVi0TVS4WHHwoh4qgyPg] already exists",
    "index_uuid" : "oIsVi0TVS4WHHwoh4qgyPg",
    "index" : "packetbeat-7.9.2-2020.11.17-000002"
  },
  "status" : 400
}

```

Could you tell me how Can I solve this issue please ?

Thanks for your help

---

<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 22, 2020, 9:56am UTC](https://discuss.elastic.co/t/packetbeat-does-not-point-to-a-write-index/256478/2 "2020-12-22T09:56:44Z")

</div>

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