User Behavior Profiling printing logs in Tomcat logs

book

Article ID: 211592

calendar_today

Updated On:

Products

CA Risk Authentication

Issue/Introduction

We have noticed that the User Behavior Profiling is printing the logs in Tomcat standard output files, these are normally not managed so it is filling up the space and concerns it may consume all the space.

Cause

ubp-logging.xml file present at ARCOT_HOME/conf had configurations enabled by default to redirect the logs to Tomcat standard output logs.

Environment

Release : 9.0

Component : RiskMinder(Arcot RiskFort)

Resolution

There is ubp-logging.xml file present at ARCOT_HOME/conf directory and that file should be modified, the ubp-logging.xml file from TOMCAT location will only be used if there is none present at ARCOT_HOME/conf directory.

Please make the changes as below at ARCOT_HOME/conf directory and this will require the application server restart to make the changes into effect.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>ARCOT_HOME/logs/ubp_logfile.log</file>
      <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
          <fileNamePattern>ARCOT_HOME/logs/backup/ubp_logfile.%i.log.zip</fileNamePattern>
          <minIndex>1</minIndex>
          <maxIndex>3</maxIndex>
      </rollingPolicy>

      <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
          <maxFileSize>5MB</maxFileSize>
      </triggeringPolicy>
    <encoder>
      <pattern>%date{YYYY-MM-dd HH:mm:ss} %level [%thread] %logger{10} [%file:%line] %msg%n</pattern>
    </encoder>
  </appender>

  <logger name="com.ca.userprofiling" level="ERROR" additivity="false">
   <appender-ref ref="FILE" />
  </logger>
  <logger name="java.sql" additivity="false">
    <level value="ERROR" />
    <appender-ref ref="FILE" /> 
  </logger>
  <logger name="com.ibatis" additivity="false">
    <level value="ERROR"/>
    <appender-ref ref="FILE"/>
  </logger>

</configuration>