# Filebeat is not auto refreshing the log files

**URL:** https://discuss.elastic.co/t/filebeat-is-not-auto-refreshing-the-log-files/368762
**Category:** Beats
**Tags:** filebeat
**Created:** [October 14, 2024, 10:35am UTC](https://discuss.elastic.co/t/filebeat-is-not-auto-refreshing-the-log-files/368762 "2024-10-14T10:35:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![JyotiPrakash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jyotiprakash/32/138143_2.png) [@JyotiPrakash](https://discuss.elastic.co/u/JyotiPrakash)
#### Post date: [October 14, 2024, 10:35am UTC](https://discuss.elastic.co/t/filebeat-is-not-auto-refreshing-the-log-files/368762/1 "2024-10-14T10:35:34Z")

</div>

My file beat is running on my app server where my application code is generating , the following is the YML file for beat.

```auto
---
filebeat.inputs:
  - type: log
    id: node-api
    enabled: true
    paths:
      - C:\\node-api-14-10-2024-logs.log
    multiline.pattern: ^[0-9]{2}-[0-9]{2}-[0-9]{4}
    multiline.negate: true
    multiline.match: after
    scan_frequency: 5s
filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false
setup.template.settings:
  index.number_of_shards: 1
setup.kibana:
  host: <Kibana_Server>:5601
output.elasticsearch:
  hosts:
    - <Elastic_server>:9200
  username: <User_Name>
  password: <Password>
  preset: balanced
processors:
  - add_host_metadata:
      when.not.contains.tags: forwarded
  - add_cloud_metadata: null
  - add_docker_metadata: null
  - add_kubernetes_metadata: null

```

And this is working fine when there is log generated and I am restarting the filebeat server, then I see the logs in the Kiabana dashboard. Though I have configured the `scan_frequency: 5s` it is not working only after restarting the logs are populating.

How to solve it ?

---

<div class="post-metadata">

### Author: ![ashishtiwari1993](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashishtiwari1993/32/135241_2.png) [@ashishtiwari1993](https://discuss.elastic.co/u/ashishtiwari1993)
#### Post date: [October 16, 2024, 9:36am UTC](https://discuss.elastic.co/t/filebeat-is-not-auto-refreshing-the-log-files/368762/2 "2024-10-16T09:36:36Z")

</div>

Hi @JyotiPrakash, Default scan\_frequency is 10s, So there could be some delay but log visible as soon as they pushed to Elasticsearch.

Could you check the [document count](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-count.html) while ingesting the logs?
