$wday

Returns the current weekday number as defined by gmtime().

This property belongs to the Time-Related System Properties group.

Name:

$wday

Category:

Time-Related System Properties

Type:

integer

Description

The current week day as defined by gmtime(). 0=Sunday, …, 6=Saturday.

Usage

template(name="example" type="list") {
    property(name="$wday")
}

See also

See rsyslog Properties for the category overview.


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.