elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
1.21k stars 24.85k forks source link

Support LogLevel configuration for Windows Service logs for Elasticsearch service #65812

Open eedugon opened 3 years ago

eedugon commented 3 years ago

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 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.

elasticmachine commented 3 years ago

Pinging @elastic/es-core-infra (Team:Core/Infra)

elasticmachine commented 3 years ago

Pinging @elastic/es-delivery (Team:Delivery)