I'm trying to set up HAProxy logging with rsyslog, and I currently have HAProxy logs going to a single log file, i.e.:
$AddUnixListenSocket /dev/log
:programname, startswith, "haproxy" {
/var/haproxy/logs/HAProxy.log
stop
}
Is there a way to use the current date stamp in the log name? i.e.
$AddUnixListenSocket /dev/log
:programname, startswith, "haproxy" {
/var/haproxy/logs/HAProxy.%$year%-%$month%-%$day%.log
stop
}