createDirs

Create directories on an as-needed basis.

This parameter applies to omfile: File Output Module.

Name:

createDirs

Scope:

action

Type:

boolean

Default:

action=on

Required?:

no

Introduced:

at least 5.x, possibly earlier

Description

Create directories on an as-needed basis

Action usage

action(type="omfile" createDirs="...")

Notes

  • Legacy documentation referred to the type as binary; this maps to boolean.

Legacy names (for reference)

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

  • $CreateDirs — maps to createDirs (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.