Logs

Specifications of logs

  • Various log files are output to the "logs" folder.

  • Log files are rotated daily.

  • The default retention period for log files is 300 days.

  • The character code for log files is UTF-8.

Types of log files

The "yyyy-MM-dd" of the file name represents the year/month/day.

  • Application log (application_yyyy-MM-dd.log)

  • Routing log (routing_yyyy-MM-dd.log)

  • Search log (search_yyyy-MM-dd.log)

  • Crawl log (crawl-history_yyyy-MM-dd.log)

  • Login log (login_yyyy-MM-dd.log)

  • Property settings log (settings_yyyy-MM-dd.log)

  • AD user synchronization log (active-directory-report_yyyy-MM-dd.log)

Modification of the logs output to the application log

You can modify the logs output to the application log by editing "logback.xml."

Output logs are set with the levels shown below. Logs for the level set in "logback.xml" and higher are output.

  • ERROR

  • WARN

  • INFO

  • DEBUG

 

In the following example, DEBUG is set as the level for logs related to screen transitions:

<logger name="com.hulft.datacatalog.api.routing" level="DEBUG" additivity="false">
  <appender-ref ref="STDOUT"/>
  <appender-ref ref="ROUTING_FILE"/>
</logger>

Modification of the retention period for log files

You can modify the retention period for log files by editing "logback.xml."

In the following example, the retention period for an application log file is set to 300 days:

<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
  <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      <fileNamePattern>logs/application_%d{yyyy-MM-dd}.log</fileNamePattern>
        <maxHistory>300</maxHistory>
    </rollingPolicy>