How to set the receive log timestamp for the rsyslog log server

Posted on

Logging server setup was in progress as follows:

template(name="TmplAuthpriv" type="list") {
constant(value="/var/log/remote/auth/")
property(name="hostname")
constant(value="/")
property(name="hostname" SecurePath="replace")
constant(value="_")
property(name="timereported" dateFormat="")
constant(value=".log")
}

template(name="TmplMsg" type="list") {
constant(value="/var/log/remote/msg/")
property(name="hostname")
constant(value="/")
property(name="hostname" SecurePath="replace")
constant(value="_")
property(name="timereported" dateFormat="")
constant(value=".log")
}

I tried to find a format that fits the "dateFormat", but it doesn't show up.
how should I put the value in that setting?

Responses