-
Bug
-
Resolution: Duplicate
-
Minor
-
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
- blocks
-
JENKINS-69133 Audit Trail plugin leaks file locks
- Open