1 Reply Latest reply on Jun 6, 2019 3:07 PM by slominskir

    Elytron audit.log documentation / examples

    slominskir

      I noticed that the audit.log file is filling with records, so I'm trying to figure out how to configure it.  There isn't much mentioned about it in the docs:

       

      https://docs.wildfly.org/16/WildFly_Elytron_Security.html#file-audit-log

       

      Does anyone have examples using the admin command line to disable the log or to configure it to periodically rotate.  It appears the default is to not rotate at all.

        • 1. Re: Elytron audit.log documentation / examples
          slominskir

          Looks like the following will result in the audit.log file not being written to:

           

          jboss-cli.sh --connect 
          /subsystem=elytron/security-domain=KeycloakDomain:write-attribute(name="security-event-listener",value=undefined)
          quit

           

          Note: the audit.log file will still be created each time the server reboots if it is missing, but will be zero length.

           

          This solution was hinted at here: Google Groups