# Use filepath instead of inode

**URL:** <https://discuss.elastic.co/t/use-filepath-instead-of-inode/129711>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 26, 2018, 3:22pm UTC](https://discuss.elastic.co/t/use-filepath-instead-of-inode/129711 "2018-04-26T15:22:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spacepacket](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@spacepacket](https://discuss.elastic.co/u/spacepacket)\
**Post date:** [April 26, 2018, 3:22pm UTC](https://discuss.elastic.co/t/use-filepath-instead-of-inode/129711/1 "2018-04-26T15:22:30Z")

</div>

I have followed many threads about Filebeat having problems with inode re-use. Many of them end without a solution. We are using Filebeat, and having inode re-use issues as well, even when the filenames are unique. When this happens, Filebeat starts reading a new file at the wrong offset. This results in fields being unaligned. One solution to this is to have an option to use the full filepath and filename as the hashed key into the Filebeat file registry, instead of the inode.

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [April 27, 2018, 10:36am UTC](https://discuss.elastic.co/t/use-filepath-instead-of-inode/129711/2 "2018-04-27T10:36:41Z")

</div>

Hi @spacepacket,

For enhancement requests you may better use Github, so we keep track of the status of the feature, and allow other users to watch for updates: [https://github.com/elastic/beats/issues](https://github.com/elastic/beats/issues)

Best regards

---

<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:** [May 25, 2018, 10:36am UTC](https://discuss.elastic.co/t/use-filepath-instead-of-inode/129711/3 "2018-05-25T10:36:53Z")

</div>

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