The re-creation of a prospector as a condition for checking whether or not to stop or start a processor in the live reloading path causes prospectors to shut down due to error thrown when trying to load file state.
Calls this function:
The factory function tries to call LoadStates on the prospector and if there is already a prospector running for the files in question, then the factory will return an error. Specifically this error:
This causes the loop in the reload to continue which then causes the currently running prospector to be incorrectly shutdown once the loop is exited.
I am currently running Filebeat on version 5.3 on CentOS6.9