Agent log configuration
Log management options
When the application server runs, it starts collecting the monitoring data. The collected data is stored in the log file.
-
log_rotation_enabled Boolean
Default
true
The function to store agent log files by date is activated. The log file name is stored in the format of whatap-'yyyymmdd'.log. If the value is
false
, the log file name is stored in the format of whatap.log. -
log_keep_days Int
Default
7
It sets the log file retention period. It works only when
log_rotation_enabled
istrue
. -
log_datasource_lookup_enabled Boolean
Default
true
The function to record the log is activated in case of DataSource upon InitialContext Lookup.
-
log_root String
You can set the path for the agent log files. The logs folder is created under the specified path, and the WhaTap log files are generated in this folder.
If you set an agent option as in the following example, the path for creating the whatap log file is as follows:
/Users/sample_user/workspace/nodejs_application/whatap_logs/logs/
whatap.conflog_root=/Users/sample_user/workspace/nodejs_application/whatap_logs/
Setting the log sink
In Node.js agent 0.5.1 or later, the LogSink feature is provided for integrated application server monitoring.
-
logsink_enabled Boolean
Default
false
Set whether or not to enable the log monitoring.
Note-
For more information on how to enable the log monitoring, see the following.
-
For more information about the log monitoring, see the following.
-
-
logsink_trace_txid_enabled Boolean
Default
true
The transaction ID is inserted into the log to configure the visibility of the Transaction log tab in Trace analysis.
NoteFor more information about the Trace analysis의 Transaction log tab, see the following.
-
logsink_limit_content_enabled Boolean
Default
true
Set whether or not to limit the maximum size for log messages.
-
logsink_limit_content_length Number
Default
10,000
It sets the maximum length for log messages. This option applies only when the
logsink_limit_content_enabled
option is set totrue
.