# Update Reindex Data

**URL:** <https://discuss.elastic.co/t/update-reindex-data/312667>\
**Category:** Elasticsearch\
**Created:** [August 23, 2022, 3:28am UTC](https://discuss.elastic.co/t/update-reindex-data/312667 "2022-08-23T03:28:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xynobob](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xynobob/32/105064_2.png) [@xynobob](https://discuss.elastic.co/u/xynobob)\
**Post date:** [August 23, 2022, 3:28am UTC](https://discuss.elastic.co/t/update-reindex-data/312667/1 "2022-08-23T03:28:56Z")

</div>

So I reindex one of my ".kibana" index to a new index called "kibana-detections" as shown below

```auto
POST _reindex
{
  "source": {
    "index": ".kibana",
    "query": {
      "bool": {
        "must": [],
        "filter": [
          {
            "match_all": {}
          },
          {
            "exists": {
              "field": "alert.name.keyword"
            }
          }
        ],
        "should": [],
        "must_not": []
      }
    }
  },
  "dest": {
    "index": "kibana-detections",
    "version_type": "external"
  }
}

```

So in my "kibana-detections" index, it currently stores the copied Rules that is in Elastic Security from the ".kibana" index. The problem is that now, when I add new Rules to Elastic Security, the Rules in "kibana-detections" index is not updated, only the non-updated/old data is reflected.  
The question is how do I update/refresh the "kibana-detections" index to have the data periodically update (ie. update every 5 mins) ? Do I have to keep deleting the old reindex-ed index and then reindex it again every single time a new Rule is added in Elastic Security?

---

<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, 2022, 3:29am UTC](https://discuss.elastic.co/t/update-reindex-data/312667/2 "2022-09-20T03:29:37Z")

</div>

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