查看/配置KeyCloak http服务器的访问日志

rok*_*rok 4 keycloak

如何查看/配置KeyCloak使用的http服务器的访问日志?

我正在尝试调查 KeyCloak管理员ui的connection_refused_error

Koh*_*URA 6

尝试将以下<access-log>标签添加到WildFly服务器配置文件中,例如:standalone/configuration/standalone.xml

        <subsystem xmlns="urn:jboss:domain:undertow:4.0">
            <buffer-cache name="default"/>
            <server name="default-server">
                ...
                <host name="default-host" alias="localhost">
                    <location name="/" handler="welcome-content"/>
                    <!-- Add the following line -->
                    <access-log worker="default" directory="${jboss.server.log.dir}" prefix="access." suffix="log"/>
                    <http-invoker security-realm="ApplicationRealm"/>
                    <filter-ref name="proxy-peer"/>
                </host>
            </server>
Run Code Online (Sandbox Code Playgroud)

您可以access.logstandalone/log/目录中看到。