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.

  1. Run dsconfig in interactive mode.

    When prompted, enter the LDAP or LDAPS connection parameters.

    $ bin/dsconfig
  2. To change to the Advanced Objects menu, enter o.
  3. In the main menu, enter the selection for Plugins.
  4. In the Plugin management menu, enter the selection for Create a new plugin.
  5. To use an existing plugin as a template, in the Create a New Periodic Stats Logger Plugin menu, enter t.
  6. Enter the number corresponding to the existing stats logger as a template.
  7. Enter a descriptive name for the new stats logger.

    For this example, enter Stats Logger-10s.

  8. Enter the log file path to the file.

    For this example, enter logs/dsstats2.csv.

  9. In the menu, make any other changes to the logger. To save and apply the configuration, enter f.

    For this example, change the log-interval to 10s, and the suppress-if-idle to FALSE.

You should see two loggers, dsstats.csv and dsstats2.csv, in the logs directory.