I have been looking into the file output module and I see some potensial issues. (All line numbers are from outputfile.go.)
When parsing file/dir modes it is decimal parsing but should be parsed as octal? (Line 103 & 108.)
Potensial race condition on access to writers - line 147 & 150. With lots of concurrent traffic we can end up with more than one trying to write to the same file.
Resource leak as files are never closed. If you log using a daily/hourly rotation the old files are still open for writing.
I can try write a fix for these issues if you agree on this being an issue.
Hi
I have been looking into the file output module and I see some potensial issues. (All line numbers are from outputfile.go.)
I can try write a fix for these issues if you agree on this being an issue.