Documentation Home
MySQL Enterprise Monitor 3.1 Manual
Related Documentation Download this Manual
PDF (US Ltr) - 3.4Mb
PDF (A4) - 3.4Mb
EPUB - 2.0Mb
HTML Download (TGZ) - 1.7Mb
HTML Download (Zip) - 1.8Mb


A.2.2 Agent Log Files

The Agent has two log files. mysql-monitor-agent.log is the general log, and mysql-monitor-agent-full.log is the full log that also contains stack traces that are useful to the Support team.

The default path to the Agent log files are as follows:

  • Windows Path: C:\Program Files\MySQL\Enterprise\Agent\logs\

  • Linux Path: /opt/mysql/enterprise/agent/logs/

  • Mac OS X Path: /Applications/mysql/enterprise/agent/logs/

The log files are managed with log4j, which is configured using log4j.properties. The Agent watches for changes every 60 seconds, and updates MySQL Enterprise Monitor accordingly. The default file location:

  • Windows Path: C:\Program Files\MySQL\Enterprise\Agent\etc\log4j.properties

  • Linux Path: /opt/mysql/enterprise/agent/etc/log4j.properties

  • Mac OS X Path: /Applications/mysql/enterprise/agent/etc/log4j.properties

The maximum size of a log file may be limited to 2GB. If MySQL Enterprise Monitor Agent cannot add information to the configured logfile, information is sent to the standard output instead.

Because the log files can become large, you could rotate the logs by defining log4j options. For example, to implement a rotation of 10 x 10MB log files:

log4j.appender.file.MaximumFileSize = 10MB
log4j.appender.file.MaxBackupIndex = 10
log4j.appender.file.Append = true

For additional information about log4j, read the log4j documentation at http://logging.apache.org/log4j/.


User Comments
Sign Up Login You must be logged in to post a comment.