Configuring multiple Periodic Stats Loggers
About this task
You can create multiple Periodic Stats Loggers to:
-
Log different statistics
-
View historical information about gauges
-
To create a log at different intervals, such as logging cumulative operations statistics every hour
To create a new log, use the existing Stats Logger as a template to get reasonable settings, including rotation and retention policy.
Steps
-
Run
dsconfig
in interactive mode.When prompted, enter the LDAP or LDAPS connection parameters.
Example:
$ bin/dsconfig
-
To change to the
Advanced Objects
menu, entero
. -
In the main menu, enter the selection for
Plugins
. -
In the
Plugin management
menu, enter the selection forCreate a new plugin
. -
To use an existing plugin as a template, in the
Create a New Periodic Stats Logger Plugin
menu, entert
. -
Enter the number corresponding to the existing stats logger as a template.
-
Enter a descriptive name for the new stats logger.
For this example, enter
Stats Logger-10s
. -
Enter the log file path to the file.
For this example, enter
logs/dsstats2.csv
. -
In the menu, make any other changes to the logger. To save and apply the configuration, enter
f
.Example:
For this example, change the
log-interval
to10s
, and thesuppress-if-idle
toFALSE
.
Result
You should see two loggers, dsstats.csv
and dsstats2.csv
, in the logs
directory.