---
title: Size Limit Log Rotation Policy
description: Rotation policy based on the size of the log file.
component: pingds
version: 8.1
page_id: pingds:configref:objects-size-limit-log-rotation-policy
canonical_url: https://docs.pingidentity.com/pingds/8.1/configref/objects-size-limit-log-rotation-policy.html
section_ids:
  parent: Parent
  size_limit_log_rotation_policy_properties: Size Limit Log Rotation Policy properties
  basic_properties: Basic properties
  file-size-limit: file-size-limit
  advanced_properties: Advanced properties
  java-class: java-class
---

# Size Limit Log Rotation Policy

Rotation policy based on the size of the log file.

## Parent

The Size Limit Log Rotation Policy object inherits from [Log Rotation Policy](objects-log-rotation-policy.html).

## Size Limit Log Rotation Policy properties

You can use configuration expressions to set property values at startup time. For details, see [Property value substitution](expressions.html).

| Basic Properties                    | Advanced Properties       |
| ----------------------------------- | ------------------------- |
| [file-size-limit](#file-size-limit) | [java-class](#java-class) |

### Basic properties

Use the `--advanced` option to access advanced properties.

### file-size-limit

|                         |                                                                            |
| ----------------------- | -------------------------------------------------------------------------- |
| *Synopsis*              | Specifies the maximum size that a log file can reach before it is rotated. |
| *Default value*         | None                                                                       |
| *Allowed values*        | Uses [size syntax](size-syntax.html).Lower limit: 1.                       |
| *Multi-valued*          | No                                                                         |
| *Required*              | Yes                                                                        |
| *Admin action required* | None                                                                       |
| *Advanced*              | No                                                                         |
| *Read-only*             | No                                                                         |

## Advanced properties

Use the `--advanced` option to access advanced properties.

### java-class

|                         |                                                                                                                       |
| ----------------------- | --------------------------------------------------------------------------------------------------------------------- |
| *Synopsis*              | Specifies the fully-qualified name of the Java class that provides the Size Limit Log Rotation Policy implementation. |
| *Default value*         | org.opends.server.loggers.SizeBasedRotationPolicy                                                                     |
| *Allowed values*        | A Java class that extends or implements:- org.opends.server.loggers.RotationPolicy                                    |
| *Multi-valued*          | No                                                                                                                    |
| *Required*              | Yes                                                                                                                   |
| *Admin action required* | None                                                                                                                  |
| *Advanced*              | Yes                                                                                                                   |
| *Read-only*             | No                                                                                                                    |
