Skip to content

Commit 9064a10

Browse files
Add dynamic logging option (elastic#90268) (elastic#93038)
Add dynamic logging option Co-authored-by: Elastic Machine <[email protected]> (cherry picked from commit 510ab87) Co-authored-by: Octavio Ranieri <[email protected]>
1 parent ef99ffd commit 9064a10

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

x-pack/docs/en/security/troubleshooting.asciidoc

+17-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,20 @@ The role definition might be missing or invalid.
107107

108108
|======================
109109

110-
To help track down these possibilities, add the following lines to the end of
110+
To help track down these possibilities, enable additional logging to troubleshoot further.
111+
You can enable debug logging by configuring the following persistent setting:
112+
113+
[source, console]
114+
----
115+
PUT /_cluster/settings
116+
{
117+
"persistent": {
118+
"logger.org.elasticsearch.xpack.security.authc": "debug"
119+
}
120+
}
121+
----
122+
123+
Alternatively, you can add the following lines to the end of
111124
the `log4j2.properties` configuration file in the `ES_PATH_CONF`:
112125

113126
[source,properties]
@@ -116,6 +129,9 @@ logger.authc.name = org.elasticsearch.xpack.security.authc
116129
logger.authc.level = DEBUG
117130
----------------
118131

132+
Refer to <<configuring-logging-levels,configuring logging levels>> for more
133+
information.
134+
119135
A successful authentication should produce debug statements that list groups and
120136
role mappings.
121137
--

0 commit comments

Comments
 (0)