---
title: Log file encryption
description: The PingDirectory server also supports encrypting log files, which can help prevent unauthorized access to sensitive information that they might contain.
component: pingdirectory
version: 11.0
page_id: pingdirectory:pingdirectory_security_guide:pd_sec_log_file_encryption
canonical_url: https://docs.pingidentity.com/pingdirectory/11.0/pingdirectory_security_guide/pd_sec_log_file_encryption.html
revdate: September 13, 2023
---

# Log file encryption

The PingDirectory server also supports encrypting log files, which can help prevent unauthorized access to sensitive information that they might contain.

As with compressed logging, the server cannot maintain a mix of encrypted and unencrypted content for the same log, so you can only enable encryption when the logger is created. This can be done using the `encrypt-log` configuration property. See the `config/sample-dsconfig-batch-files/create-encrypted-loggers.dsconfig` batch file for an example that demonstrates the process for creating encrypted access and error loggers. These examples also enable compression for the log files.
