Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72061

Audit Trail plugin is creating multiple files on Jenkins restart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • audit-trail-plugin
    • None
    • Jenkins 2.319.3
      Audit Trail plugin 3.10

      We are using audit trail plugin to capture Jenkins audit logs, We mainly have to use this with Configuration as Code, I've set following configs for the plugin

      Limit 1024 MB

      Count 1

      The plugin is writing the logs correctly, but each time we restart the Jenkins or kill the Jenkins container, It is creating new file with random number (i.e 1,2,3) after a dot.

      jenkins@ip:~/audit$ ls -la
      total 24
      drwxrwxrwx  2 jenkins jenkins  4096 Sep 22 14:35 .
      drwx------ 31 jenkins jenkins 12288 Sep 22 15:28 ..
      -rwxrwxrwx  1 jenkins jenkins     0 Sep 22 14:23 audit.log
      -rwxrwxrwx  1 jenkins jenkins     0 Sep 22 14:35 audit.log.1
      -rwxrwxrwx  1 jenkins jenkins     0 Sep 22 14:35 audit.log.1.lck
      -rwxrwxrwx  1 jenkins jenkins  4378 Sep 22 15:27 audit.log.2
      -rwxrwxrwx  1 jenkins jenkins     0 Sep 22 14:35 audit.log.2.lck
      -rwxrwxrwx  1 jenkins jenkins     0 Sep 22 14:23 audit.log.lck 

      The desired behaviour for us to have a single file always , which we want to read by filebeat and ingest logs in ELK

            pierrebtz Pierre Beitz
            rixwan_sharif Rizwan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: