How to increase the time the EEM for AutoSys retains its audit logs
search cancel

How to increase the time the EEM for AutoSys retains its audit logs

book

Article ID: 407877

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

Is it possible to configure the AutoSys EEM audit.log file to keep a historical record, since it only saves the transactions of one day? 
C:\Program Files\CA\SharedComponents\EmbeddedEntitlementsManager\logs\audit.log

Environment

AutoSys 12.X, 24.X
EEM 12.X

Resolution

Edit the following server.xml file after making a backup to control the EEM Audit logging

Windows Location

C:\Program Files (x86)\CA\SharedComponents\EmbeddedEntitlementsManager\config\logger\server.xml

Linux Location
/opt/CA/SharedComponents/EmbeddedEntitlementsManager/config/logger/server.xml

Change the file size and the number of files to maintain as needed

  <appender name="audit" class="org.apache.log4j.RollingFileAppender">
      <!-- The security audit log file -->
      <param name="file" value="${EIAM_HOME}/logs/audit.log" />
      <param name="append" value="true" />
      <param name="BufferedIO" value="false"/>
      <param name="maxFileSize" value="10000KB" />
      <param name="maxBackupIndex" value="1" />
      <layout class="org.apache.log4j.PatternLayout">
        <!-- The log message pattern -->
        <param name="ConversionPattern" value="%m%n"/>
      </layout>
   </appender>

Above are the defaults