# Deletion of logs of filebeat client side

**URL:** https://discuss.elastic.co/t/deletion-of-logs-of-filebeat-client-side/40671
**Category:** Beats
**Created:** [February 1, 2016, 9:10pm UTC](https://discuss.elastic.co/t/deletion-of-logs-of-filebeat-client-side/40671 "2016-02-01T21:10:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sd\_karthik](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@sd\_karthik](https://discuss.elastic.co/u/sd_karthik)
#### Post date: [February 1, 2016, 9:10pm UTC](https://discuss.elastic.co/t/deletion-of-logs-of-filebeat-client-side/40671/1 "2016-02-01T21:10:25Z")

</div>

Is there a way where, logs on the source server are deleted after getting streamed. Like-- currently we have hourly logs on the source, which keeps rotating every hour. And currently I have Filebeats installed on these servers to stream all the logs to a central place and have an ignore\_older of 30m, which I believe filebeat will have an open handler till this time(ignore\_older).--I think this means if filebeat is down for more than ignorE\_older

How about deleting the log files? after making sure the whole log is successfully streamed?

---

<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: [February 1, 2016, 9:15pm UTC](https://discuss.elastic.co/t/deletion-of-logs-of-filebeat-client-side/40671/2 "2016-02-01T21:15:34Z")

</div>

Beats cannot do this, given you are using something else to roll the logs already, you should be able to delete them with that.

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [February 2, 2016, 6:11am UTC](https://discuss.elastic.co/t/deletion-of-logs-of-filebeat-client-side/40671/3 "2016-02-02T06:11:45Z")

</div>

Also have a look at this issue: [https://github.com/elastic/beats/issues/714](https://github.com/elastic/beats/issues/714)

---

<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: [July 5, 2017, 9:56pm UTC](https://discuss.elastic.co/t/deletion-of-logs-of-filebeat-client-side/40671/4 "2017-07-05T21:56:05Z")

</div>


