# ELK reindex - no input realtime data

**URL:** <https://discuss.elastic.co/t/elk-reindex-no-input-realtime-data/303928>\
**Category:** Elasticsearch\
**Created:** [May 4, 2022, 10:22am UTC](https://discuss.elastic.co/t/elk-reindex-no-input-realtime-data/303928 "2022-05-04T10:22:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Next\_generation](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/next_generation/32/105074_2.png) [@Next\_generation](https://discuss.elastic.co/u/Next_generation)\
**Post date:** [May 4, 2022, 10:22am UTC](https://discuss.elastic.co/t/elk-reindex-no-input-realtime-data/303928/1 "2022-05-04T10:22:16Z")

</div>

how to assign template to specific elk index

i created the correct index template and migrated the data from the old index but it is not written further in real time

How to make it write? (used by fluentd)

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [May 4, 2022, 3:03pm UTC](https://discuss.elastic.co/t/elk-reindex-no-input-realtime-data/303928/2 "2022-05-04T15:03:26Z")

</div>

To assign a [dynamic template](https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic-templates.html) to an existing index you need to use to [update the mapping](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html).

---

<div class="post-metadata">

**Author:** ![Next\_generation](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/next_generation/32/105074_2.png) [@Next\_generation](https://discuss.elastic.co/u/Next_generation)\
**Post date:** [May 4, 2022, 9:33pm UTC](https://discuss.elastic.co/t/elk-reindex-no-input-realtime-data/303928/3 "2022-05-04T21:33:15Z")

</div>

try input this but

```auto
PUT /_template/test_template
{
  "index_patterns" : [
    "test*"
  ],
  "mappings": {
    "dynamic_templates": [
      {
        "strings": {
          "match_mapping_type": "string",
          "mapping": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 1024
              }
            }
          }
        }
      }
    ]
  }
}

```

but have next issue - legacy format not modern

```auto
#! legacy template [test_templatee] has index patterns [test*] matching patterns from existing composable templates [default,test.logs,test.sp] with patterns (default => [*],test.logs => [monitor*, fluentd*, sandbox*, test*, staging*],test.sp => [test.sp.services.log*, staging.sp.services.log*]); this template [test_templatee] may be ignored in favor of a composable template at index creation time
#! Legacy index templates are deprecated in favor of composable templates.
{
  "acknowledged" : true
}

```

---

<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:** [June 1, 2022, 9:33pm UTC](https://discuss.elastic.co/t/elk-reindex-no-input-realtime-data/303928/4 "2022-06-01T21:33:51Z")

</div>

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