Log Management Configuration
The Service Manager and the application services continually send log events to the Log Manager. As a result, the directory location for the logs can grow to contain a large number of log events.
You can purge logs events periodically to manage the amount of log events stored by the Log Manager. You can export logs before you purge them to keep a backup of the log events.
Purging Log Events
You can automatically or manually purge log events. The Service Manager purges log events from the log directory according to the purge properties you configure in the Log Management dialog box. You can manually purge log events to override the automatic purge properties.
Purging Log Events Automatically
The Service Manager purges log events from the log directory according to the purge properties.
When the number of days or the size of the log directory exceeds the limit, the Log Manager deletes the log event files, starting with the oldest log events. The Log Manager periodically verifies the purge options and purges log events. The Log Manager does not purge the current day log event files and folder.
The following table lists purge properties:
Option | Description |
---|
Preserve logs for number of days | Number of days to preserve logs. Default is 30. |
Maximum size for logs in MB | Number of megabytes of disk space to store logs. Default is 200. |
Note: The Log Manager does not purge PowerCenter session and workflow log files.
Purging Log Events Manually
You can purge log events for the domain, application services, or user activity. When you purge log events, the Log Manager removes the log event files from the log directory. The Log Manager does not remove log event files currently being written to the logs.
Optionally, you can use the infacmd PurgeLog command to purge log events.
The following table lists the purge log options:
Option | Description |
---|
Log Type | Type of log events to purge. You can purge domain, service, user activity or all log events. |
Service Type | When you purge application service log events, you can purge log events for a particular application service type or all application service types. |
Purge Entries | Date range of log events you want to purge. You can select the following options: - - All Entries. Purges all log events.
- - Before Date. Purges log events that occurred before this date.
Use the yyyy-mm-dd format when you enter a date. Optionally, you can use the calendar to choose the date. To use the calendar, click the date field. |
Time Zone
When the Log Manager creates log event files, it generates a time stamp based on the time zone for each log event. When the Log Manager creates log folders, it labels folders according to a time stamp. When you export or purge log event files, the Log Manager uses this property to calculate which log event files to purge or export. Set the time zone to the location of the machine that stores the log event files.
Verify that you do not lose log event files when you configure the time zone for the Log Manager. If the application service that sends log events to the Log Manager is in a different time zone than the master gateway node, you may lose log event files you did not intend to delete. Configure the same time zone for each gateway node.
Note: When you change the time zone, you must restart Informatica Services on the node that you changed.
Configuring Log Management Properties
Configure the log management properties in the Log Management dialog box in Informatica Administrator.
1. In the Administrator console, click the Logs tab.
2. Select Log Actions > Log Management.
3. Enter the number of days for the Log Manager to preserve log events.
4. Enter the maximum disk size for the directory that contains the log event files.
5. Enter the time zone in the following format:
GMT(+|-)<hours>:<minutes>
For example: GMT+08:00
6. Click OK.