APM 10.8 em.log size keeps increasing
search cancel

APM 10.8 em.log size keeps increasing

book

Article ID: 388444

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope) DX Application Performance Management

Issue/Introduction

We have currently very big em.log files after upgrading to 10.8 sp1

What are the available options to reduce the size?

Environment

APM 10.8* (Unix platform)

Resolution

OPTION 1) disable the console ouput to go into the em.log
 
1. Open the <EM-HOME>Introscope_Enterprise_Manager.lax
2. Locate the line: lax.stdout.redirect=console
3. unset it
lax.stdout.redirect=
 
4. restart the EM  : ./EMCtrl.sh stop and then start
 
OPTION 2) create a unix cron job to manually empty the file
 
1. Copy and truncate command sequence i..e.
 
  cp -p em.log em_bak.log ; truncate -s0 em.log

This does not require a restart of EM.
2. Work with your team to automate for this line to run for example every week, day , accordingly to your requirements.
 
OPTION 3) Use Ansible
 

Below is an Ansible script example to rotate the Wily em.log daily with a history of 4 files, adjust the path based on your environment.

- name: Create logrotate config for Wily Enterprise Manager em.log
  copy:
    dest: /etc/logrotate.d/wilyem
    content: |
      /opt/Introscope/logs/em.log {
        daily
        rotate 4
        copytruncate
        missingok
        notifempty
      }
    owner: root
    group: root
    mode: '0644'

Additional Information