<p>I want to reformat the default logging output to json format without code changes</p>
<p>Docker image: jboss/keycloak:16.1.1</p>
<p>The current log structure is the default</p>
<pre><code>15:04:16,056 INFO  [org.infinispan.CLUSTER] (thread-5,null) [Context=authenticationSessions] ISPN100002: Starting rebalance with members [], phase READ_OLD_WRITE_ALL, topology id 2
15:04:16,099 INFO  [org.infinispan.CLUSTER] (thread-20,) [Context=offlineClientSessions] ISPN100002: Starting rebalance with members [], phase READ_OLD_WRITE_ALL, topology id 2
</code></pre>
<p>I tried to use <code>LOG_CONSOLE_OUTPUT</code> as described here  <a href="https://www.keycloak.org/server/logging" rel="nofollow noreferrer">https://www.keycloak.org/server/logging</a> but it's not working.</p>
<p>Any ideas please?</p>

Areej Mohey
<p>The link you posted is a tutorial for the Quarkus-based distro. However, your docker image is based on Wildfly.</p>
<p><a href="https://www.youtube.com/watch?v=AnHUqu-Vi_E" rel="nofollow noreferrer">Here is a Youtube video</a> which explains how to configure json logging with Wildfly-based distro.</p>
