# Настройка Filebeat на старый лог

**URL:** <https://discuss.elastic.co/t/filebeat/91650>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 3, 2017, 2:38pm UTC](https://discuss.elastic.co/t/filebeat/91650 "2017-07-03T14:38:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![admyin](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@admyin](https://discuss.elastic.co/u/admyin)\
**Post date:** [July 3, 2017, 2:38pm UTC](https://discuss.elastic.co/t/filebeat/91650/1 "2017-07-03T14:38:52Z")

</div>

Добрый день, подскажите пожалуйста, как заставить Filebeat проиндексировать старые события в логе? Спасибо!

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [July 4, 2017, 6:34pm UTC](https://discuss.elastic.co/t/filebeat/91650/2 "2017-07-04T18:34:36Z")

</div>

You need to stop the Filebeat service, then delete the registry file which is where Filebeat persists its state. The registry is stored in `/var/lib/filebeat/registry` by default. Then restart Filebeat and it will read any logs from the beginning.

---

<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:** [August 1, 2017, 6:34pm UTC](https://discuss.elastic.co/t/filebeat/91650/3 "2017-08-01T18:34:57Z")

</div>

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