The following example configures two log publishers: one for common access;
the other, detailed access. Both log publishers use the default configuration
settings for log rotation and retention.
$ bin/dsconfig create-log-publisher \
--publisher-name "HTTP Common Access Logger" \
--type common-log-file-http-operation \
--set enabled:true \
--set log-file:logs/http-common-access \
--set "rotation-policy:24 Hours Time Limit Rotation Policy" \
--set "rotation-policy:Size Limit Rotation Policy" \
--set "retention-policy:File Count Retention Policy" \
--set "retention-policy:Free Disk Space Retention Policy"
$ bin/dsconfig create-log-publisher \
--publisher-name "HTTP Detailed Access Logger" \
--type detailed-http-operation \
--set enabled:true \
--set log-file:logs/http-detailed-access \
--set "rotation-policy:24 Hours Time Limit Rotation Policy" \
--set "rotation-policy:Size Limit Rotation Policy" \
--set "retention-policy:File Count Retention Policy" \
--set "retention-policy:Free Disk Space Retention Policy"