---
title: Debug File Rotation Retention Count (deprecated)
description: Previously used to define the number of retained log files. This should now be specified in the agent-logback.xml file in the agent config directory.
component: java-agents
version: 2023.11
page_id: java-agents:properties-reference:org.forgerock.agents.debug.retention.count
canonical_url: https://docs.pingidentity.com/java-agents/2023.11/properties-reference/org.forgerock.agents.debug.retention.count.html
---

# Debug File Rotation Retention Count (deprecated)

Previously used to define the number of retained log files. This should now be specified in the agent-logback.xml file in the agent config directory.

|                          |                                                                                                                                                    |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| Property name            | `org.forgerock.agents.debug.retention.count`                                                                                                       |
| Aliases                  | `org.forgerock.agents.debug.retention.count`   Introduced in Java Agent 5.7   [Recognized](preface.html#how_am_manages_multiple_aliases) from AM 7 |
| Function                 | Deprecated                                                                                                                                         |
| Type                     | String                                                                                                                                             |
| Bootstrap property       | No                                                                                                                                                 |
| Required property        | No                                                                                                                                                 |
| Restart required         | No                                                                                                                                                 |
| Local configuration file | `AgentConfig.properties`                                                                                                                           |
| AM console               | Tab: `Global (from AM 7)`Title: `Debug File Rotation Retention Count (deprecated)`                                                                 |
