Skip to main content

Agent log configuration

When the application server runs, it starts collecting the monitoring data. The collected data is stored in the log file.

Log setting

  • whatap.log_keep_days Day

    Default 7

    Set the retention period of log files.

Setting the log sink

It is used to log data.

Default settings

  • whatap.logsink_enabled Boolean

    Default false

    If the value is true, the log data is collected.

  • whatap.logsink_zip_enabled Boolean

    Default true

    If the value is true, the zipped log data is transmitted. The default value is GZIP.

Setting the log file

  • whatap.logsink.files String

    Set the full file path and file name. You can specify multiple files with comma (,).

Example

  • Default Settings

    whatap.ini
    whatap.logsink_enabled=true
    whatap.logsink_zip_enabled=true
  • Configuration for Apache error log and access log

    whatap.ini
    whatap.logsink_enabled=true
    whatap.logsink_zip_enabled=true
    whatap.logsink.files=/etc/httpd/logs/error_log, /etc/httpd/logs/access_log
Tip

You can use any variable in date format in log file names. Apply it based on the use of the Python strftime().

e.g. 20240101: %Y%m%d

whatap.ini
whatap.logsink.files=/etc/httpd/logs/customlog-%Y%m%d

This function is supported in PHP agent 2.7.2 or later.