Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-1006

Elytron Audit Logging does not support log file rotation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 1.1.0.Beta37
    • None
    • None
    • None
    • 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.

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: