# \[SOLVED\] Filebeat creates only one index

**URL:** <https://discuss.elastic.co/t/solved-filebeat-creates-only-one-index/210651>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 5, 2019, 8:56am UTC](https://discuss.elastic.co/t/solved-filebeat-creates-only-one-index/210651 "2019-12-05T08:56:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebiwi\_ultra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebiwi_ultra/32/47498_2.png) [@sebiwi\_ultra](https://discuss.elastic.co/u/sebiwi_ultra)\
**Post date:** [December 5, 2019, 8:56am UTC](https://discuss.elastic.co/t/solved-filebeat-creates-only-one-index/210651/1 "2019-12-05T08:56:21Z")

</div>

Hello,

I'm using the default Filebeat configuration on a Kubernetes cluster. This is my configuration:

```auto
    filebeat.autodiscover:
      providers:
        - type: kubernetes
          host: ${NODE_NAME}
          hints.enabled: true
          hints.default_config:
            type: container
            paths:
              - /var/log/containers/*${data.kubernetes.container.id}.log

    processors:
      - add_cloud_metadata:
      - add_host_metadata:
      - decode_json_fields:
          fields: ["message"]
          target: "json_message"
          process_array: true
          overwrite_keys: true

    cloud.id: ${ELASTIC_CLOUD_ID}
    cloud.auth: ${ELASTIC_CLOUD_AUTH}

    output.elasticsearch:
      hosts: ['${ELASTICSEARCH_HOST:elasticsearch}:${ELASTICSEARCH_PORT:9200}']
      username: ${ELASTICSEARCH_USERNAME}
      password: ${ELASTICSEARCH_PASSWORD}
      protocol: https
      ssl:
        certificate_authorities: /etc/ssl/certs/client/tls.crt

```

It works like a charm, the only issue is that Filebeat does not seem to create daily indices. It only created one, and it kept on using it on subsequent days. As far as I understand, Filebeat is supposed to create one index per day. This is the output of the `_cat/shards` request:

```auto
.kibana_task_manager_1 0 p STARTED 2 21.6kb 10.60.19.39 elasticsearch-logging-es-default-2
.kibana_task_manager_1 0 r STARTED 2 21.6kb 10.60.21.43 elasticsearch-logging-es-default-1
.kibana_1 0 r STARTED 8 196.4kb 10.60.19.39 elasticsearch-logging-es-default-2
.kibana_1 0 p STARTED 8 196.4kb 10.60.21.43 elasticsearch-logging-es-default-1
filebeat-7.4.2-2019.12.02-000001 0 r STARTED 32473955 18.6gb 10.60.19.39 elasticsearch-logging-es-default-2
filebeat-7.4.2-2019.12.02-000001 0 p STARTED 32473434 18.8gb 10.60.20.24 elasticsearch-logging-es-default-0
.security-7 0 p STARTED 36 88.9kb 10.60.20.24 elasticsearch-logging-es-default-0
.security-7 0 r STARTED 36 88.9kb 10.60.21.43 elasticsearch-logging-es-default-1
.apm-agent-configuration 0 p STARTED 0 283b 10.60.19.39 elasticsearch-logging-es-default-2
.apm-agent-configuration 0 r STARTED 0 283b 10.60.20.24 elasticsearch-logging-es-default-0

```

As you can see, the only index created is the one that was created when I deployed filebeat, 3 days ago.

I'm lost really. Should I add additional configuration for Filebeat to behave the way I expect it to behave?

Thanks!

---

<div class="post-metadata">

**Author:** ![sebiwi\_ultra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebiwi_ultra/32/47498_2.png) [@sebiwi\_ultra](https://discuss.elastic.co/u/sebiwi_ultra)\
**Post date:** [December 5, 2019, 4:37pm UTC](https://discuss.elastic.co/t/solved-filebeat-creates-only-one-index/210651/2 "2019-12-05T16:37:15Z")

</div>

Alright, this wasn't working because of ILM. I deactivated it and everything is working like a charm now.

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:** [January 2, 2020, 4:37pm UTC](https://discuss.elastic.co/t/solved-filebeat-creates-only-one-index/210651/3 "2020-01-02T16:37:20Z")

</div>

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