Rotating File Logs for Log Actions (Doc ID 1136635.1)

Last updated on MAY 02, 2016

Applies to:

APM - Application Performance Management - Version 6.5.5 to 6.5.4 [Release 6.5]
Information in this document applies to any platform.
***Checked for relevance on 06-Feb-2012*** This only applies to BTM release 6***
Checked for relevance on 16-Jul-2013
Checked for relevance on 02-May-2016

Goal

Using the Environment Monitor (EM), you can create custom configurations for your agents. One of the available actions you can add to a configuration is the Log action. You associate a Log action with a Log Destination.

A configuration offers four types of custom logging destinations, allowing you to log to:

(You can read about all of these in the online EM documentation.)

When writing to a flat file, it’s often desirable to rotate the logs to prevent them from becoming too large or to allow for organized archiving. Whereas both container logs and a program logger have built-in rotation facilities, your own flat file does not.

However, it’s possible to implement automatic time-based flat file log rotation through a custom configuration on the Agent. This technote discusses how to do this.

The BTM has a logging policy template, that does allow for file rotation based on size or time, but if you want more control over what gets logged, when during processing it's logged, and the location of the target log file, you'll need to use a custom configuration and implement log rotation through this solution.



Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms