voxpupuli / puppet-elasticsearch

Elasticsearch Puppet module
Apache License 2.0
404 stars 476 forks source link

Log level should be a parameter (and probably not default to debug) #1031

Open TJM opened 5 years ago

TJM commented 5 years ago

Bug description

By default this module configures logging as debug, and other than providing the entire contents of log4j2.properties, it is not configurable.

I think there should be a parameter for logging level, and it should probably be info (or whatever the package defaults) are.

Opinions?

~tommy

tylerjl commented 5 years ago

It's more than likely changed upstream over time, but I think that this module should default to whatever Elasticsearch ships as its default logging level, whatever that is.

TJM commented 5 years ago

Perhaps, I agree. The module should follow the default by default. Maybe debug is the default? either way I think it should be exposed as a parameter.

batmac commented 4 years ago

This is still a problem for us. Should it be possible to make it a parameter to be able to customize it easily (as suggested by @TJM ) ?

TJM commented 4 years ago

Yes, it is quite easy, probably 2-3 lines of code, but seeing as how this module has over 20 PRs that have not seen much attention from "elastic" ... I am not sure how much good it will do to submit a fix. We are using a customized internal version with this "loglevel" and "ES7" fixes (at least).