$hour¶
Returns the current hour in 24-hour format.
This property belongs to the Time-Related System Properties group.
- Name:
$hour
- Category:
Time-Related System Properties
- Type:
integer
Description¶
The current hour in military (24 hour) time (2-digit).
Usage¶
template(name="example" type="list") {
property(name="$hour")
}
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.