PingDirectory

Modifying the maximum length of log message strings

Change the maximum length of log message strings by setting the max-string-length configuration property.

About this task

By default, the PingDirectory server sets the maximum length of log message strings to 2000 characters. This value is configurable for any access log publisher, except the syslog publisher, which is set to 500 characters. If any string has more than the configured number of characters, then that string is truncated and a placeholder is appended to indicate the number of remaining characters in the original string.

Steps

  • To set the max-string-length property for an access log, run dsconfig.

    Example:

    The following command configures the File-based Access Logger to include the instance name and the maximum length of the log message strings to 5000 characters.

    $ bin/dsconfig set-log-publisher-prop \
      --publisher-name "File-Based Access Logger" \
      --set include-instance-name:true \
      --set max-string-length:5000