# Lag is there from filebeat to Elasticsearch

**URL:** https://discuss.elastic.co/t/lag-is-there-from-filebeat-to-elasticsearch/287101
**Category:** Beats
**Tags:** filebeat
**Created:** [October 19, 2021, 2:02pm UTC](https://discuss.elastic.co/t/lag-is-there-from-filebeat-to-elasticsearch/287101 "2021-10-19T14:02:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ayush\_Agrahari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayush_agrahari/32/74932_2.png) [@Ayush\_Agrahari](https://discuss.elastic.co/u/Ayush_Agrahari)
#### Post date: [October 19, 2021, 2:02pm UTC](https://discuss.elastic.co/t/lag-is-there-from-filebeat-to-elasticsearch/287101/1 "2021-10-19T14:02:36Z")

</div>

Hi ,

I am using Filebeat in Kubernetes env. Data flow is like below  
Filebeat -\> Logstash -\> Elasticsearch -\> Kibana

I am using 7.9.0 version of filebeat

I am finding lag in FIlebeat to Kibana. ES & Logstash & Filebeat health looks fine. Could you help me here

Filebeat config:

```auto
filebeat.autodiscover:
     providers:
       - type: kubernetes
         scope: cluster
         node: ${NODE_NAME}
         hints.enabled: true
         add_resource_metadata:
           labels:
             enabled: true
         templates:
           - condition:
               equals:
                 kubernetes.labels. ***** : "true"
             config:
               - type: container
                 multiline.pattern: ' **Pattern***'
                 multiline.negate: false
                 multiline.match: after
                 paths:
                   - /var/log/containers/*-${data.kubernetes.container.id}.log
                 exclude_lines: ["^\\s+[\\-`('.|_]"] # drop asciiart lines
                 fields:
                    cluster: {{ .Values.elk.clustername }}
                    container: ${data.kubernetes.container}

    processors:
      - add_cloud_metadata:
      - add_host_metadata:

    cloud.id: ${ELASTIC_CLOUD_ID}
    cloud.auth: ${ELASTIC_CLOUD_AUTH}
    monitoring:
      enabled: true
      elasticsearch:
        hosts: ['https://${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}']
        username: ${ELASTICSEARCH_USERNAME}
        password: ${ELASTICSEARCH_PASSWORD}
        ssl:
          enabled: true
          verification_mode: none
    output.logstash:
      hosts: ['${LOGSTASH_HOST}:${LOGSTASH_PORT}']

```

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [October 19, 2021, 9:24pm UTC](https://discuss.elastic.co/t/lag-is-there-from-filebeat-to-elasticsearch/287101/2 "2021-10-19T21:24:03Z")

</div>

You've not provided any evidence of these delays, so it's a bit hard to help with what you have provided unfortunately.

---

<div class="post-metadata">

### Author: ![Ayush\_Agrahari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayush_agrahari/32/74932_2.png) [@Ayush\_Agrahari](https://discuss.elastic.co/u/Ayush_Agrahari)
#### Post date: [October 20, 2021, 4:46am UTC](https://discuss.elastic.co/t/lag-is-there-from-filebeat-to-elasticsearch/287101/3 "2021-10-20T04:46:11Z")

</div>

@warkolm Please share what details do you need to take this forward. Will share it with you

---

<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: [November 17, 2021, 4:47am UTC](https://discuss.elastic.co/t/lag-is-there-from-filebeat-to-elasticsearch/287101/4 "2021-11-17T04:47:02Z")

</div>

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