---
title: Creating a new log publisher
description: Use the dsconfig command in non-interactive mode to create and configure the new log publisher.
component: pingauthorize
version: 10.1
page_id: pingauthorize:pingauthorize_server_administration_guide:paz_create_new_log_publisher
canonical_url: https://docs.pingidentity.com/pingauthorize/10.1/pingauthorize_server_administration_guide/paz_create_new_log_publisher.html
revdate: August 2, 2023
section_ids:
  steps: Steps
  example: Example:
---

# Creating a new log publisher

## Steps

1. Use the `dsconfig` command in non-interactive mode to create and configure the new log publisher.

   ### Example:

   This example shows how to create a logger that only logs disconnect operations.

   ```shell
   $ bin/dsconfig create-log-publisher \
     --type file-based-access --publisher-name "Disconnect Logger" \
     --set enabled:true \
     --set "rotation-policy:24 Hours Time Limit Rotation Policy" \
     --set "rotation-policy:Size Limit Rotation Policy" \
     --set "retention-policy:File Count Retention Policy" \
     --set log-connects:false \
     --set log-requests:false --set log-results:false \
     --set log-file:logs/disconnect.log
   ```

   |   |                                                                                                                                                                                                                                                                                                                                       |
   | - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   |   | To configure compression on the logger, add the `--set compression-mechanism: gzip` option to the previous command.Because compression cannot be disabled or turned off after configured for the logger, plan carefully to determine your logging requirements, including log rotation and retention with regards to compressed logs. |

2. View log publishers with the following command.

   ```shell
   $ bin/dsconfig list-log-publishers
   ```
