Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-9623

Elytron Audit Logging does not support log file rotation

XMLWordPrintable

    • Hide

      Manually rename the log file (e.g. $JBOSS_HOME/standalone/log/audit.log)

      Show
      Manually rename the log file (e.g. $JBOSS_HOME/standalone/log/audit.log)
    • Hide

      These steps could be followed in order to get a few records in Audit Log file:

      1. Follow steps Configure Elytron (default profile) in blog post in order to change default configuration to Elytron
      2. Add user via add-user.sh (as Application User)
      3. Start server and deploy attached war (containing servlet secured with BASIC HTTP auth)
      4. Access http://127.0.0.1:8080/protected/printRoles in a browser and fill in username and password
      5. Check JBOSS_HOME/standalone/log/audit.log

      Note: Apparently, the more times step 4 is applied the more records will be in log file.

      Show
      These steps could be followed in order to get a few records in Audit Log file: Follow steps Configure Elytron (default profile) in blog post in order to change default configuration to Elytron Add user via add-user.sh (as Application User) Start server and deploy attached war (containing servlet secured with BASIC HTTP auth) Access http://127.0.0.1:8080/protected/printRoles in a browser and fill in username and password Check JBOSS_HOME/standalone/log/audit.log Note: Apparently, the more times step 4 is applied the more records will be in log file.

      It is not possible to rotate (= rename current log file and start logging into a new one) Elytron Audit log files. It cannot be set to use the log rotation neither based on the file size (e.g. once the file size outreaches 100 MB) nor based on a time period (e.g. rotate create a new file every Sunday at midnight).

      Inability to set the log rotation could lead to huge log files. Then it would be really difficult to read such files.

            jkalina@redhat.com Jan Kalina (Inactive)
            jtymel Jan Tymel (Inactive)
            Jan Tymel Jan Tymel (Inactive)
            Jan Tymel Jan Tymel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: