Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to suppress DEBUG on o.e.a.ActionModule using -E flag #57022

Closed
phlax opened this issue May 21, 2020 · 4 comments
Closed

Unable to suppress DEBUG on o.e.a.ActionModule using -E flag #57022

phlax opened this issue May 21, 2020 · 4 comments
Labels
>bug :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts Team:Delivery Meta label for Delivery team

Comments

@phlax
Copy link

phlax commented May 21, 2020

Elasticsearch version (bin/elasticsearch --version):

Version: 7.8.0-SNAPSHOT, Build: default/docker/10fb54e90ab82b271e78da60587c2275ad3e3d88/2020-05-20T20:22:08.133568Z, JVM: 14

Plugins installed: []

JVM version (java -version):

OS version (uname -a if on a Unix-like system):

docker build 7.8.0-SNAPSHOT

Description of the problem including expected versus actual behavior:

Im getting DEBUG logging even when setting the -E logger.action.level=info flag

I tried editing the log4js2.properties file directly and set the log level to info and this suppressed the logs successfully

Steps to reproduce:

Please include a minimal but complete recreation of the problem,
including (e.g.) index creation, mappings, settings, query etc. The easier
you make for us to reproduce it, the more likely that somebody will take the
time to look at it.

  1. run elasticsearch with -E logger.action.level=info
  2. hope for no DEBUG messages from o.e.a.ActionModule
  3. be disappointed

Provide logs (if relevant):

There are quite a few with traces relating to shard startup etc. Some are very lengthy, not sure how helpful to post.

@phlax phlax added >bug needs:triage Requires assignment of a team area label labels May 21, 2020
@nik9000 nik9000 added :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts and removed needs:triage Requires assignment of a team area label labels May 29, 2020
@elasticmachine
Copy link
Collaborator

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

@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label May 29, 2020
@nik9000
Copy link
Member

nik9000 commented May 29, 2020

I believe we've removed this from the rpm/deb/tar/zip version of log4j2.properties but it looks like we haven't from docker. That sounds like a bug to me.

Also, I did think you were supposed to be able to override properties with -E so that sounds like another bug.

@nik9000
Copy link
Member

nik9000 commented May 29, 2020

But someone who knows that packaging better than I do will have to take a look.

@rjernst
Copy link
Member

rjernst commented May 29, 2020

Thanks for raising this issue. As Nik pointed out, this was missed in our recent removal of this from our log4j config in the docker case. I've opened #57389 to fix that.

-E logger.action.level=info

This is the not the correct setting. It should be -E logger.org.elasticsearch.action=info.

As the description of this issue is not a bug, I hope you don't mind that I close this issue.

@rjernst rjernst closed this as completed May 29, 2020
@mark-vieira mark-vieira added Team:Delivery Meta label for Delivery team and removed Team:Core/Infra Meta label for core/infra team labels Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts Team:Delivery Meta label for Delivery team
Projects
None yet
Development

No branches or pull requests

5 participants