How to change the log rotation size for lua-application.log
search cancel

How to change the log rotation size for lua-application.log

book

Article ID: 165139

calendar_today

Updated On:

Products

Endpoint Protection

Issue/Introduction

On LiveUpdate Administrator (LUA) 2.3.x the lua-application.log rotates after 5MB.  It rotates through 50 logs by default.  To adjust the log size use the steps below.

Resolution

The log configuration settings can be modified by using the following steps:

  1. Navigate to <drive letter>:\Symantec\LiveUpdate Administrator\tomcat\webapps\lua\WEB-INF\classes\
  2. Edit log4j2.xml in a text editor
  3. Locate the RollingFile section for "lua-application"
  4. Find the line <SizeBasedTriggeringPolicy size="5 MB"/>
  5. Adjust the 5 MB as desired.  Increasing to 50 MB is recommended to start.
  6. Restart the LUA Apache Tomcat service
<RollingFile name="ROLL" filePattern="C:/Program Files (x86)/Symantec/LiveUpdate Administrator/logs/lua-application.%d{yyyy-MM-dd}.%i.log">
    <PatternLayout>
        <Pattern>%d [%t] %-5p %c{2} %x - %m%n</Pattern>
    </PatternLayout>
    <Policies>
        <OnStartupTriggeringPolicy/>
        <SizeBasedTriggeringPolicy size="5 MB"/>
        <TimeBasedTriggeringPolicy/>
    </Policies>
</RollingFile>

 

Alternative log rotation method. 

Do not use this method unless instructed by Support

To change the daily based rotation, please use org.apache.log4j.DailyRollingFileAppender class and param name="DatePattern" like following;

<appender name="ROLL" class="org.apache.log4j.DailyRollingFileAppender">
  <param name="Threshold" value="DEBUG"/>
  <param name="File" value="C:/Program Files (x86)/Symantec/LiveUpdate Administrator//logs/lua-application.log"/>
  <param name="DatePattern" value="
'.'yyyy-MM-dd"/>
  <layout class="org.apache.log4j.PatternLayout">

lua-application.log will be rotated

lua-application.log.yyyy-mm-dd

Note: The rotated files are not removed automatically. And the log files will be large in size.