Enable statistics with frequency and destination
To enable gathering of statistics at a designated frequency and write the statistics to a specific file, use the stats on command and specify the following options:
- component
- interval
- destination
The interval option, without a count option, indefinitely sends statistics reports after a specific number of seconds elapses. The destination option specifies the exact file where the statistics are written. When we specify a file that is different for the file log agent for the component, we can specify more configuration options. The following example enables the gathering of statistics for the pdweb.http component of a WebSEAL instance where:
- A statistics report is sent to the jmt-stats.log file every 20 seconds.
- A new file is created each time the buffer is flushed.
#pdadmin> server task default-webseald-abc.ibm.com stats on pdweb.http 20 \ file path=jmt-stats.log,rollover_size=-1
The growth of the log file is controlled by the rollover_size configuration option. For complete details about configuring event logging, see the Troubleshooting topics in the Knowledge Center.
Parent topic: Enable statistics