When installing Elasticsearch in windows and the service is created via elasticsearc-service.bat there's no way to configure the --LogLevel setting that could be used for service logs (elasticsearch-service-x64.YYYY-MM-DD). This setting has a default value of Info which is the effective value.
Elasticsearch-service installation is controlled by the Apache Deamons service wrapper.
I guess this wrapper supports --LogLevel parameter that we are not using, based on what I see at https://commons.apache.org/proper/commons-daemon/procrun.html
Some users are asking us to support that parameter and to be able to set it via an environment variable.
It would be great if we can provide an environment variable to control this and change the elasticsearch-service.bat to also include the --LogLevel flag when installing the service.
Related also with https://github.com/elastic/elasticsearch/issues/65571
When installing Elasticsearch in windows and the service is created via
elasticsearc-service.bat
there's no way to configure the--LogLevel
setting that could be used forservice
logs (elasticsearch-service-x64.YYYY-MM-DD
). This setting has a default value ofInfo
which is the effective value.Elasticsearch-service installation is controlled by the Apache Deamons service wrapper. I guess this wrapper supports
--LogLevel
parameter that we are not using, based on what I see at https://commons.apache.org/proper/commons-daemon/procrun.htmlSome users are asking us to support that parameter and to be able to set it via an environment variable.
It would be great if we can provide an environment variable to control this and change the
elasticsearch-service.bat
to also include the--LogLevel
flag when installing the service.