We are experimenting with setting up a file output to store certain types of logs. Right after the file is created by logstash we are using
incron to set the file to append only with
Logstash writes to the file fine after this change. After a period of inactivity logstash closes the file. When it goes to reopen the file it causes a crashing error that it can't access the file.
I'm not seeing any explicit option in the documentation but Is there a way to disable logstash closing the file?
I'm reading through the code to find out https://github.com/logstash-plugins/logstash-output-file