Skip to content

JVM debug logs are not redirerected to the elasticsearch log #50156

Closed
@jkakavas

Description

@jkakavas

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 the bin/elasticsearch script , in the systemd journal for elasticsearch.service when running with systemd and in docker logs when running elasticsearch in docker container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Core/Infra/LoggingLog management and logging utilities:Security/AuthenticationLogging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)>docsGeneral docs changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions