How to define a rotation strategy for logs in Talend Identity and Access Management
- catalina.out: this is the global log, recording global events on the Tomcat server.
- Tomcat server logs:
- catalina.<date>.log
- localhost.<date>.log
- manager.<date>.log
- host-manager.<date>.log
- Access logs: localhost_access_log.txt
- Spring Boot applications:
- idp.log
- oidc.log
- scim.log
- sts.log
- audit.log
- sts-tac.log
- audit-tac.log
- Syncope:
- core-connid.log
- core.log
- core-persistence.log
- core-rest.log
- console.log
- enduser.log
The catalina.out
log, the Tomcat server logs and the access logs are all
standard Tomcat logs, independent of the Talend
products. If you need to define a rotation strategy for these logs, see the third-party
documentation about these logs, for example, logrotate for the catalina.out log or the access logs.
The following sections explain how to define a log rotation strategy for the Spring Boot logs and the Syncope logs.
Spring Boot log rotation
Create logback.xml files to configure how the Spring Boot logs are generated.
For information about the Spring Boot logging system, see https://www.baeldung.com/spring-boot-logging
Procedure
Syncope log rotation
Define the rotation policy in $IAM_HOME/apache-tomcat/webapps/<app>/WEB-INF/classes/log4j2.xml.
For information about this Syncope log rotation appender, see the Apache documentation: https://logging.apache.org/log4j/2.x/manual/appenders.html