Which exact filebeat version are you using? Skimming the code, I suspect a potential race that might be triggered due to enabling -httpprof
. This race might lead to files being rotated twice on startup.
Anyway, instead of rotation logs on every restart, we should also consider to change log rotation, to continue old files and only rotate once the configure size limit is reached.