Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
tutorial:adm:czechidm_installation_win [2021/05/10 16:06]
urbanl [Create CzechIdM configuration] Changed DB appender in logback to support IdM 11
tutorial:adm:czechidm_installation_win [2021/08/25 08:10]
husniko
Line 22: Line 22:
 Use the pgAdmin or PSQL to test the database connection under the ''czechidm'' user. Use the pgAdmin or PSQL to test the database connection under the ''czechidm'' user.
 ==== JDBC driver installation ==== ==== JDBC driver installation ====
-Download the newest PostgreSQL JDBC driver( version 42.2.6 and newer) from the [[https://jdbc.postgresql.org/download.html|this URL]] and move it to the ''C:\Program Files\Apache Software Foundation\Tomcat 8.5\lib\'' directory.+Download the newest PostgreSQL JDBC driver( version 42.2.6 and newer) from the [[https://jdbc.postgresql.org/download.html|this URL]] and move it to the ''C:\Program Files\Apache Software Foundation\Tomcat 9.0\lib\'' directory.
 ==== Configure environment properties. Select application profile ==== ==== Configure environment properties. Select application profile ====
 Run the **Monitor Tomcat** application from the Start menu. Configure following settings: Run the **Monitor Tomcat** application from the Start menu. Configure following settings:
Line 102: Line 102:
 <!-- http://logback.qos.ch/manual/appenders.html --> <!-- http://logback.qos.ch/manual/appenders.html -->
 <configuration> <configuration>
 +        <!-- !!!BEWARE!!! The specification of the LOG PATTERNS overrides the default configuration and increases the maximum length of the %logger{<size>} attribute. 
 +        It is neccessary for correct function of the AUDIT logging feature (redmine ticket #2717). If AUDIT logger key is longer then the set limit it gets shortened 
 +        and SIEM software is not able to parse logs properly. -->
 +        <property name="CONSOLE_LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %5level %relative --- [%thread] %logger{60}.%M : %msg%n"/>
 +        <property name="FILE_LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %5level %relative --- [%thread] %logger{60}.%M : %msg%n"/>
 +        
         <springProperty name="spring.profiles.active" source="spring.profiles.active"/>         <springProperty name="spring.profiles.active" source="spring.profiles.active"/>
         <include resource="org/springframework/boot/logging/logback/file-appender.xml"/>         <include resource="org/springframework/boot/logging/logback/file-appender.xml"/>
Line 112: Line 118:
                 <springProperty name="spring.datasource.password" source="spring.datasource.password"/>                 <springProperty name="spring.datasource.password" source="spring.datasource.password"/>
    
-                <appender name="DB" class="ch.qos.logback.classic.db.DBAppender">+                <appender name="DB" class="eu.bcvsolutions.idm.core.exception.IdmDbAppender">
                     <connectionSource class="ch.qos.logback.core.db.DriverManagerConnectionSource">                     <connectionSource class="ch.qos.logback.core.db.DriverManagerConnectionSource">
                       <driverClass>${spring.datasource.driver-class-name}</driverClass>                       <driverClass>${spring.datasource.driver-class-name}</driverClass>
Line 121: Line 127:
                 </appender>                 </appender>
    
-                <appender name="DB_ASYNC" class="eu.bcvsolutions.idm.core.exception.IdmDbAppender">+                <appender name="DB_ASYNC" class="ch.qos.logback.classic.AsyncAppender">
                 <appender-ref ref="DB" />                 <appender-ref ref="DB" />
                      <includeCallerData>true</includeCallerData>                      <includeCallerData>true</includeCallerData>
  • by fiserp