You need to install the Audit Trail plugin in Jenkins. This plugin is not available by default. After that, you have to set the below parameters in the Audit Trail.
Visit the Configure Jenkins screen (http://localhost:8080/configure).
Under the Audit Trail section, click the Add Logger button.
Modify the default settings for Audit Trail to allow for a long observation. Change Log File Size MB to 128 and Log File Count to 40.
Click on save.