#  Filebeat: 0 Documents After Index Rollover

**URL:** <https://discuss.elastic.co/t/filebeat-0-documents-after-index-rollover/352060>\
**Category:** Beats\
**Tags:** ilm-index-lifecycle-management, filebeat\
**Created:** [January 30, 2024, 6:37am UTC](https://discuss.elastic.co/t/filebeat-0-documents-after-index-rollover/352060 "2024-01-30T06:37:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Megha\_Varshney](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/megha_varshney/32/123964_2.png) [@Megha\_Varshney](https://discuss.elastic.co/u/Megha_Varshney)\
**Post date:** [January 30, 2024, 6:37am UTC](https://discuss.elastic.co/t/filebeat-0-documents-after-index-rollover/352060/1 "2024-01-30T06:37:46Z")

</div>

I am experiencing an issue with Filebeat where, after an index rollover, the new index shows 0 documents, and no data seems to be indexed. Here are the details of my setup:'

**Filebeat Configuration:**

```auto
filebeat.inputs:
- type: log
  enabled: true
  paths:
    - /var/log/*.log
multiline.type: pattern
multiline.pattern: ^d{4}-d{2}-d{2} d{2}:d{2}:d{2}
multiline.negate: true
multiline.match: after
filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false
setup.ilm.enabled: false
setup.template.enabled: false
setup.template.settings:
  index.number_of_shards: 1
setup.kibana:
  host: '$elk_host_public_ip:5601'
  username: 'elastic'
  password: 'password'
output.elasticsearch:
  hosts: ["http://elasticsearch-host:9200"]
  username: 'elastic'
  password: 'password'
  index: "rollover-7.17.8-%{+yyyy.MM.dd}-000001"
http.enabled: true
http.port: 5067
http.host: localhost
monitoring.enabled: true
processors:
  - add_host_metadata:
      when.not.contains.tags: forwarded
  - add_cloud_metadata: ~
  - add_docker_metadata: ~
  - add_kubernetes_metadata: ~
logging.level: info
logging.to_files: true
logging.files:
  path: /var/log/filebeat
  name: filebeat
  keepfiles: 3
  permissions: 0640
seccomp:
  default_action: allow 
  syscalls:
  - action: allow
    names:
    - rseq
name: 'project_name'
tags: ['project_name']
' > /etc/filebeat/filebeat.yml

```

**ILM Policy is:-**

```auto
PUT _ilm/policy/rollover
{
  "policy": {
    "phases": {
      "hot": {
        "min_age": "0ms",
        "actions": {
          "rollover": {
            "max_age": "10m",
            "max_docs": 10
          },
          "set_priority": {
            "priority": 100
          }
        }
      },
      "delete": {
        "min_age": "10m",
        "actions": {
          "delete": {
            "delete_searchable_snapshot": 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:** [February 27, 2024, 8:37am UTC](https://discuss.elastic.co/t/filebeat-0-documents-after-index-rollover/352060/2 "2024-02-27T08:37:59Z")

</div>

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