# X-pack logs index template

**URL:** <https://discuss.elastic.co/t/x-pack-logs-index-template/296916>\
**Category:** Logs\
**Created:** [February 10, 2022, 11:46pm UTC](https://discuss.elastic.co/t/x-pack-logs-index-template/296916 "2022-02-10T23:46:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![icey7z](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/icey7z/32/101676_2.png) [@icey7z](https://discuss.elastic.co/u/icey7z)\
**Post date:** [February 10, 2022, 11:46pm UTC](https://discuss.elastic.co/t/x-pack-logs-index-template/296916/1 "2022-02-10T23:46:25Z")

</div>

I'm trying to get my cluster to work with x-pack, and my data is stored in indexes under the namespace `logs-*-*`.

This is a problem because x-pack creates an index template named `logs` as

```auto
{
    "index_patterns": [
        "logs-*-*"
    ],
    "composed_of": [
        "logs-mappings",
        "data-streams-mappings",
        "logs-settings"
    ],
    "priority": 100,
    "version": 1,
    "_meta": {
        "managed": true,
        "description": "default logs template installed by x-pack"
    },
    "data_stream": {
        "hidden": false
    },
    "allow_auto_create": true
}

```

I'd like to know what x-pack creates this index template for and whether it's possible to disable this template's auto-creation.

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [February 12, 2022, 4:25pm UTC](https://discuss.elastic.co/t/x-pack-logs-index-template/296916/2 "2022-02-12T16:25:03Z")

</div>

**Avoid index pattern collisions** in [Index templates](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-templates.html):

> - To disable all built-in index and component templates, set [`stack.templates.enabled`](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-management-settings.html#stack-templates-enabled) to `false` using the [cluster update settings API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html).

---

<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:** [March 12, 2022, 4:25pm UTC](https://discuss.elastic.co/t/x-pack-logs-index-template/296916/3 "2022-03-12T16:25:12Z")

</div>

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