---
title: Maximum Number of Debug Log Files
description: The maximum number of debug log files to store after log rotation.
component: web-agents
version: 2025.11
page_id: web-agents:properties-reference:com.forgerock.agents.config.max.num.log.files
canonical_url: https://docs.pingidentity.com/web-agents/2025.11/properties-reference/com.forgerock.agents.config.max.num.log.files.html
---

# Maximum Number of Debug Log Files

The maximum number of debug log files to store after log rotation.

If this property is `10`, the agent stores the current debug log file and up to 9 rotated log files. When logs are rotated again and a new log file is generated, the agent deletes the oldest of the stored log files and keeps the new log file.

To store no rotated logfiles, set [Agent Debug File Size](com.sun.identity.agents.config.debug.file.size.html) to zero.

Default: `0`, store all rotated log files

|                    |                                                                                  |
| ------------------ | -------------------------------------------------------------------------------- |
| Property name      | `com.forgerock.agents.config.max.num.log.files`   Introduced in Web Agent 5.10.1 |
| Function           | Logs                                                                             |
| Type               | Integer                                                                          |
| Bootstrap property | Yes                                                                              |
| Required property  | No                                                                               |
| Restart required   | No                                                                               |
