tram0004.bsky.social
@tram0004.bsky.social
The explanation for that gnarly template string can be found at www.rsyslog.com/doc/configur...
The Property Replacer - rsyslog documentation
www.rsyslog.com
February 11, 2026 at 4:59 PM
Minor change to the rsyslog config, in modern syntax:
-----
template(name="MyLog"
type="string"
string="/var/log/mylog/%programname:F,45:2:%.log")

if ($programname startswith 'docker-') then {
action(type="omfile" dynaFile="MyLog")
stop
}
-----
February 11, 2026 at 4:59 PM