We have currently very big em.log files after upgrading to 10.8 sp1
What are the available options to reduce the size?
APM 10.8* (Unix platform)
1. Open the <EM-HOME>Introscope_Enterprise_Manager.lax2. Locate the line: lax.stdout.redirect=console3. unset itlax.stdout.redirect=4. restart the EM : ./EMCtrl.sh stop and then start
1. Copy and truncate command sequence i..e.
cp -p em.log em_bak.log ; truncate -s0 em.logThis 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.
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'