# rotation.sizeLimitCommand

Configures the script invoked when rotation.sizeLimit is exceeded.

This parameter applies to omfile: File Output Module.

Name:

  rotation.sizeLimitCommand

Scope:

  action

Type:

  string

Default:

  action=(empty)

Required?:

  no

Introduced:

  at least 5.x, possibly earlier

## Description

This sets the command executed when a file hits the configured size limit. Use together with rotation.sizeLimit.

## Action usage

    action(type="omfile" rotation.sizeLimitCommand="...")

## Notes

- Legacy documentation referred to the type as `binary`; the value is a command string.

### Legacy names (for reference)

Historic names/directives for compatibility. Do not use in new configs.

- $outchannel — maps to rotation.sizeLimitCommand (status: legacy)

## See also

See also omfile: File Output Module.

Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.