Details

    • Target Release:
    • Steps to Reproduce:
      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.
    • Workaround Description:
      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)

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  honza889 Jan Kalina
                  Reporter:
                  jtymel Jan Tymel
                  Tester:
                  Jan Tymel
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: