How does filebeat handle the case where the underlying file changes when using Symlinks. I understand that you have to enable "symlinks: true" for it to process symlinks where it reads the actual file.
But when the underlying file changes does it automatically pick up the new file the symlink is pointing to?
Symlinks are tricky. Filebeat tracks files by inode and device ID. I think it uses stat, which gets you the inode of the path given. In case of symlinks this is the symlink itself, not the file you point to. Given that I don't think that filebeat detects you relinking a symlink. An alternative operation filebeat would detect:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.