In a file in /etc/rsyslog.d/ I have the following:
local3.* /var/log/mylog.log
When I log to this facility, records have timestamps which look like this:
Apr 27 21:12:20 hostname msg
How do I set things up so that they look like this instead?
2014-04-27T21:12:20 hostname msg
This can be achieved by commenting out the following line in
/etc/rsyslog.conf
as the comment suggests:Log format now looks like this: