6.1.4. Read the audit trail via the API#
The best way is to retrieve the audit trail data via the API.
This can be done regularly (cron) using a script. The data obtained in this way is available as a CSV file and can be seamlessly merged.
curl --no-keepalive -c cookies.txt -X POST \
-d "username=admin&password=PASSWORD" --insecure "https://LinOTP_IP/admin/login"
curl -b cookies.txt -o Audit_Trail.csv --insecure 'https://LINOTP_IP/audit/search?outform=csv'