# Filebeat doesnt update the log file

**URL:** https://discuss.elastic.co/t/filebeat-doesnt-update-the-log-file/216355
**Category:** Kibana
**Created:** [January 24, 2020, 4:47am UTC](https://discuss.elastic.co/t/filebeat-doesnt-update-the-log-file/216355 "2020-01-24T04:47:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Gayathri.Srivathsan](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@Gayathri.Srivathsan](https://discuss.elastic.co/u/Gayathri.Srivathsan)
#### Post date: [January 24, 2020, 4:47am UTC](https://discuss.elastic.co/t/filebeat-doesnt-update-the-log-file/216355/1 "2020-01-24T04:47:59Z")

</div>

Hi

I have deleted few entries from my log file. But filebeat still shows them when I see the kibana dashboard. How to update filebeat not to store deleted items . I have tried close\_\* options. Didnt work.

---

<div class="post-metadata">

### Author: ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)
#### Post date: [January 24, 2020, 8:21am UTC](https://discuss.elastic.co/t/filebeat-doesnt-update-the-log-file/216355/2 "2020-01-24T08:21:14Z")

</div>

Hi Gayathri,

Could you please brief about your setup such as which products you are using like Elasticsearch, logstash etc..

Regards,  
Harsh Bajaj

---

<div class="post-metadata">

### Author: ![Gayathri.Srivathsan](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@Gayathri.Srivathsan](https://discuss.elastic.co/u/Gayathri.Srivathsan)
#### Post date: [January 24, 2020, 8:27am UTC](https://discuss.elastic.co/t/filebeat-doesnt-update-the-log-file/216355/3 "2020-01-24T08:27:41Z")

</div>

Hi @harshbajaj16

I am using filebeat to read multiple log files and send them to Elasticsearch. Kibana then uses that data.

---

<div class="post-metadata">

### Author: ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)
#### Post date: [January 24, 2020, 9:19am UTC](https://discuss.elastic.co/t/filebeat-doesnt-update-the-log-file/216355/4 "2020-01-24T09:19:44Z")

</div>

Hi @Gayathri.Srivathsan,

FIlebeat ships the log to elasticsearch and elasticsearch store the data and it visible on kibana dashboard. it means once the data have been shipped it stores in elasticsearch as index so you need to delete the entries from index via delete API available in elasticsearch not actual file/data which is already shiped by fileebat.

Or

You can delete the full index from elasticsearch and reshipped the data from filebeat to elasticsearch.

Regards,  
Harsh Bajaj

---

<div class="post-metadata">

### Author: ![Gayathri.Srivathsan](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@Gayathri.Srivathsan](https://discuss.elastic.co/u/Gayathri.Srivathsan)
#### Post date: [January 24, 2020, 9:38am UTC](https://discuss.elastic.co/t/filebeat-doesnt-update-the-log-file/216355/5 "2020-01-24T09:38:48Z")

</div>

Thanks @harshbajaj16

But dont the count\_\* fields work? I thought they do this.

---

<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 21, 2020, 9:38am UTC](https://discuss.elastic.co/t/filebeat-doesnt-update-the-log-file/216355/6 "2020-02-21T09:38:53Z")

</div>

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