Hi All,
We are having issues in our logstash were the config changes are not getting picked up untill the service is restarted.
Tried the solutins given in:Reloading the Config File | Logstash Reference [8.15] | Elastic
none of it works
can you please guide us here.
Regards,
Anusha K
leandrojmp
(Leandro Pereira)
October 24, 2024, 1:14pm
2
Hello,
How are you running logstash? As a service?
Please share your logstash.yml
file.
path.data: /var/lib/logstash
xpack.monitoring.elasticsearch.hosts: ["outhostlist"]
xpack.monitoring.elasticsearch.username: "test"
xpack.monitoring.elasticsearch.password: "test"
xpack.monitoring.elasticsearch.ssl.certificate_authority: "/etc/logstash/certs/CA-ADMIN.pem"
xpack.monitoring.enabled: true
pipeline.workers: 2
config.reload.automatic: true
config.reload.interval: 3s
pipeline.ecs_compatibility: disabled
path.logs: /var/log/logstash
here it is
we are running as service
leandrojmp
(Leandro Pereira)
October 24, 2024, 1:44pm
4
Yeah, this is the correct configuration.
With these:
config.reload.automatic: true
config.reload.interval: 3s
Logstash should reload the configurations when pipelines.yml
or any pipeline configuration is changed.
What did you change? Are you using persistent queues? Some pipelines may take a long time to reload.
Can you share your logstash logs near the time you made any change? Or maybe do a simple change in one pipeline to get fresh logs.
Yes we are using persistant queues
any changes in the logstash config files not getting picked unless restart
not any relevant logs in logstash logs
leandrojmp
(Leandro Pereira)
October 24, 2024, 6:09pm
6
Please share the logs you got after you made any change.
There is no error in the configuration, so it should work, without the logs is not possible to know what may be happening.