Greetings.
I'm using the Logstash Docker image and I noticed something strange.
I created a bind mount in Docker on the logstash.yml
file so that I could easily edit the configuration. I also enabled automatic configuration reload for convenience:
config.reload.automatic: true
This works fine but at some point (I don't know exactly when), Logstash seems to overwrite the configuration file. All options I wrote and their values are well preserved, but they seem to be reordered (alphabetical order?) and most importantly, all the # comments I wrote are removed...
The first times this happened, Logstash added this line in the file:
xpack.monitoring.enabled: ${xpack.monitoring.enabled}
I thought that maybe this was done because this line was both important and missing, but Logstash keeps editing the file even if that line already exists.
It is annoying to have my comments removed and I honestly see this as a bug unless someone can give me a good reason about why this is happening?