Creating a Periodic Stats Logger
Create a Periodic Stats Logger to capture specific server metrics at defined intervals.
You can create multiple loggers with different configurations, such as one that captures cumulative operation statistics every hour and another that logs error-related metrics every 5 minutes during peak periods, depending on your monitoring needs.
When creating a new logger, use an existing Periodic Stats Logger as a template to inherit preferred defaults, including log rotation and retention policies.
Steps
-
Run
dsconfigin interactive mode.$ bin/dsconfig -
When prompted, enter the LDAP or LDAPS connection parameters.
-
In the main menu, enter
oto change to the advanced objects menu. -
Enter the number corresponding to the
Advancedmenu. -
In the server configuration menu, enter the number corresponding to
Plugin. -
In the plugin management menu, enter the number corresponding to
Create a new plugin. -
Enter
tto use an existing plugin as a template. -
Enter the number corresponding to the existing stats logger template.
-
Enter a descriptive name for the new stats logger.
-
Enter the log file path.
For example,
logs/dsstats2.csv. -
In the Periodic Stats Logger Plugin menu, make any desired changes to the logger properties.
In this menu, you can change the log file format from
csvtojson. -
Enter
fto save and apply the configuration.