-
Notifications
You must be signed in to change notification settings - Fork 25.2k
JVM debug logs are not redirerected to the elasticsearch log #50156
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
Labels
:Core/Infra/Logging
Log management and logging utilities
>docs
General docs changes
:Security/Authentication
Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)
Comments
Pinging @elastic/es-security (:Security/Authentication) |
Pinging @elastic/es-core-infra (:Core/Infra/Logging) |
Pinging @elastic/es-docs (>docs) |
Good catch 👍 |
rjernst
added a commit
to rjernst/elasticsearch
that referenced
this issue
Dec 17, 2019
This commit overrides the stdout and stderr print streams to be redirected to the main elasticsearch.log file. While the Elasticsearch project ensures stdout and stderr are not written to, the jdk or 3rd party libs may do this, which can be unexepected for users used to looking the elasticsearch log. closes elastic#50156
rjernst
added a commit
that referenced
this issue
Jan 25, 2020
This commit overrides the stdout and stderr print streams to be redirected to the main elasticsearch.log file. While the Elasticsearch project ensures stdout and stderr are not written to, the jdk or 3rd party libs may do this, which can be unexepected for users used to looking the elasticsearch log. closes #50156
rjernst
added a commit
that referenced
this issue
Jan 25, 2020
This commit overrides the stdout and stderr print streams to be redirected to the main elasticsearch.log file. While the Elasticsearch project ensures stdout and stderr are not written to, the jdk or 3rd party libs may do this, which can be unexepected for users used to looking the elasticsearch log. closes #50156
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
:Core/Infra/Logging
Log management and logging utilities
>docs
General docs changes
:Security/Authentication
Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)
JVM debug logs ( such as the logs produced by setting
-Dsun.security.krb5.debug=true
or-Dsun.security.spnego.debug=true
) are only printed in stdout and are not redirected to the elasticsearch log.These are crucial for Kerberos troubleshooting as these are the only actionable information we can get from Java GSS. In general though, it might also make sense for other JVM related logs to be redirected to elasticsearch.log and we could add a proxy in code to make writing to stdout go to the log.
At a bare minimum, we should update https://www.elastic.co/guide/en/elasticsearch/reference/7.5/trb-security-kerberos.html to point out that after enabling the debug logs, these logs can be found in
stdout
when running elasticsearch with thebin/elasticsearch
script , in the systemd journal forelasticsearch.service
when running with systemd and indocker logs
when running elasticsearch in docker container.The text was updated successfully, but these errors were encountered: