Audit-trail plugin configuration as code settings

Jenkins setup:2.541.1

Hi

We like to use and configure plugin audit-trail with configuration as code approach.

We can’t seem to find the settings/configuration on Audit Trail.

Where can we find this documentation ?

Where can we find examples configuration as code approach with this plugin ?

Thank you

Just install the plugin, configure it via UI and then export the CasC configuration. You should then see the what you need to use
e.g.

unclassified:
  audit-trail:
    displayUserName: false
    logBuildCause: true
    logCredentialsUsage: true
    logScriptUsage: false
    loggers:
    - logFileDailyRotation:
        count: 10
        log: "^${JENKINS_HOME}/audit.log"
    pattern: ".*/(?:configSubmit|doDelete|postBuildResult|enable|disable|cancelQueue|stop|toggleLogKeep|doWipeOutWorkspace|createItem|createView|toggleOffline|cancelQuietDown|quietDown|restart|exit|safeExit)/?.*"