HP-UX Event ManagerAdministrator's Guide
Configuring Event Manager
Managing Log Files
Chapter 3 71
Managing Log Files
The Event Manager channel manager, evmchmgr, provides log
management capability through the channel fn_cleanup function. You
can define this capability for any channel through the channel
configuration file, evmchannel.conf. For more information on this file,
see “Configuring Event Manager Channel” on page 65 .
By default, channel cleanup functions run when Event Manager starts,
and then run at 2:00 am each day. You can change the time of day by
editing the cleanup_time value in the channel configuration file. When
a cleanup is scheduled, the channel manager scans the event channel
list, and executes the fn_cleanup command for each channel identified
in the file.
The evmlog cleanup function, evmlog_cleanup, accepts the following
arguments:
• The archive period, which has a default value of 7 days.
• The delete period, which has a default value of 31 days.
The function uses the find utility to locate and compress (zip) all logs
older than the archive period, and to delete any archived files older than
the delete period. You can change the period values by editing the
function definition in the channel configuration file. Setting either of
these values to zero disables the corresponding function.
The evmget command does not retrieve evmlog events that are stored in
archived (zipped) logs. To retrieve events from archived logs, you must
first uncompress them with the gunzip command. For information on
unzipping archive files, see gunzip (1).