# CreatePath

Creates missing directories for the specified socket path.

This parameter applies to imuxsock: Unix Socket Input Module.

Name:

  CreatePath

Scope:

  input

Type:

  boolean

Default:

  input=off

Required?:

  no

Introduced:

  4.7.0

## Description

Create directories in the socket path if they do not already exist. They are created with 0755 permissions with the owner being the process under which rsyslogd runs. The default is not to create directories. Keep in mind, though, that rsyslogd always creates the socket itself if it does not exist (just not the directories by default).

This option is primarily considered useful for defining additional sockets that reside on non-permanent file systems. As rsyslogd probably starts up before the daemons that create these sockets, it is a vehicle to enable rsyslogd to listen to those sockets even though their directories do not yet exist.

Added in version 4.7.0.

## Input usage

    input(type="imuxsock" createPath="on")

### Legacy names (for reference)

Historic names/directives for compatibility. Do not use in new configs. .. _imuxsock.parameter.legacy.inputunixlistensocketcreatepath:

- $InputUnixListenSocketCreatePath — maps to CreatePath (status: legacy)

## See also

See also imuxsock: Unix Socket Input 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.