Hi,
I have a Logstash -> Elasticsearch set p. Everything is working as expected, but I have a problem with the sincedb or better with my Linux VM underneath.
If I reboot the system, the device number of the partition is changing.
So Logstash thinks it has to import the log file again.
For better understanding here my setup
My pipeline.conf with the sincedb setup
input {
file {
path => [
"/usr/share/logstash/logs/localhost_access_log*.gz"
]
start_position => "beginning"
mode => "read"
sincedb_path => "/usr/share/logstash/sincedb/my_sincedb"
}
}
...
sincedb content after first import
151074174 0 64769 41343 1710406427.02369 /usr/share/logstash/logs/localhost_access_log.2023-09-30.txt.gz
And after the reboot a cleary sign that the device number has changed
151074174 0 64769 41343 1710406427.02369 /usr/share/logstash/logs/localhost_access_log.2023-09-30.txt.gz
151074174 0 64772 41343 1710481076.099891 /usr/share/logstash/logs/localhost_access_log.2023-09-30.txt.gz
I can't do anything about the vm configuration atm because it is not in my hand but if I call stat -c "%D" /usr/share/logstash/logs/localhost_access_log.2023-09-30.txt.gz
I can clearly see the same changes to support my theory ![]()
Are there any other ways to set up sincedb to rely on something other than the minor device number? Are there any other options I have?
Many thanks in advance for any hints.