我希望能够将登录的用户登录到keycloak的访问日志中。我已经在standalone.xml文件中配置了访问日志,如下所示:
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content"/>
<access-log pattern=""%t","%a","%{i,X-Request-ID}","%{i,X-Correlation-ID}","%s","%m","%U","%H","%b","%{i,user-agent}","%D","%u"" worker="default" directory="${jboss.server.log.dir}" prefix="keycloak-access" suffix=".log" rotate="true"/>
<http-invoker security-realm="ApplicationRealm"/>
</host>
根据https://kb.novaordis.com/index.php/Undertow_WildFly_Subsystem_Configuration_-_access-log %u
应该记录“已验证的远程用户”。
但是,日志将始终以“-”作为用户。
如何登录用户?