In order for audit log events to be logged somewhere, we should provide a default configuration. This should provide a log4j2.xml configuration that defines a JSON layout to output those audit log events to $JENKINS_HOME/logs/audit/audit.log (no need to configure rollover or anything just yet).

          [JENKINS-54636] Configure default audit logging output configuration

          Matt Sicker created issue -
          Matt Sicker made changes -
          Epic Link New: JENKINS-54082 [ 194705 ]
          Matt Sicker made changes -
          Rank New: Ranked higher
          Matt Sicker made changes -
          Labels New: audit-logging

          C R added a comment -

          jvz

          I would like to do this. I checked and looks like the core uses log4j, not log4j 2.

          Am I missing something?

           

          C R added a comment - jvz I would like to do this. I checked and looks like the core uses log4j, not log4j 2. Am I missing something?  

          Matt Sicker added a comment -

          This is for a plugin, not core. The plugin hasn't been migrated to the jenkinsci GitHub organization yet, so there isn't an "audit-log-plugin" component in Jira yet. The plugin is currently located at https://github.com/jvz/audit-log-plugin

          Matt Sicker added a comment - This is for a plugin, not core. The plugin hasn't been migrated to the jenkinsci GitHub organization yet, so there isn't an "audit-log-plugin" component in Jira yet. The plugin is currently located at https://github.com/jvz/audit-log-plugin
          Matt Sicker made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Matt Sicker made changes -
          Assignee New: David Olorundare [ mide ]
          Matt Sicker made changes -
          Component/s New: audit-log-plugin [ 24638 ]
          Component/s Original: core [ 15593 ]

          Matt Sicker added a comment -

          Merged to master. Don't forget to mark tasks as "in review" after submitting the PR!

          Matt Sicker added a comment - Merged to master. Don't forget to mark tasks as "in review" after submitting the PR!
          Matt Sicker made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Fixed but Unreleased [ 10203 ]

            mide David Olorundare
            jvz Matt Sicker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: