Browse Source

Add dynamic logging option (#90268)

Add dynamic logging option

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Octavio Ranieri 2 years ago
parent
commit
510ab87a85
1 changed files with 17 additions and 1 deletions
  1. 17 1
      x-pack/docs/en/security/troubleshooting.asciidoc

+ 17 - 1
x-pack/docs/en/security/troubleshooting.asciidoc

@@ -107,7 +107,20 @@ The role definition might be missing or invalid.
 
 |======================
 
-To help track down these possibilities, add the following lines to the end of
+To help track down these possibilities, enable additional logging to troubleshoot further. 
+You can enable debug logging by configuring the following persistent setting:
+
+[source, console]
+----
+PUT /_cluster/settings
+{
+  "persistent": {
+    "logger.org.elasticsearch.xpack.security.authc": "debug"
+  }
+}
+----
+
+Alternatively, you can add the following lines to the end of 
 the `log4j2.properties` configuration file in the `ES_PATH_CONF`:
 
 [source,properties]
@@ -116,6 +129,9 @@ logger.authc.name = org.elasticsearch.xpack.security.authc
 logger.authc.level = DEBUG
 ----------------
 
+Refer to <<configuring-logging-levels,configuring logging levels>> for more
+information.
+
 A successful authentication should produce debug statements that list groups and
 role mappings.
 --