<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>Assuming you want to use quarkus based Keycloak: Json logging for the quarkus based keycloak is only available since v18, see the <a href="https://www.keycloak.org/docs/latest/release_notes/index.html#quarkus-distribution" rel="nofollow noreferrer">release notes</a> - the guides are at the moment referencing only the latest version.</p>
<p>I heavily recommend to update to this version. Then you could use the log console output variable.</p>
<p>You find the newer container images at <a href="https://quay.io/keycloak/keycloak" rel="nofollow noreferrer">quay</a> instead of dockerhub since v17.</p>
