Use the --log-format=FORMAT option. It's explained in the rsyncd.conf man page.
Speaking of rsyncd.conf, rsync run as daemon logs to a configurable syslog facility.
If you need to get plain rsh/ssh-transported rsync to syslog, you'll have to feed the
output to logger or a similar utility.
Tim Conway
[EMAIL PROTECTED]
303.682.4917
Philips Semiconductor - Colorado TC
1880 Industrial Circle
Suite D
Longmont, CO 80501
[EMAIL PROTECTED]@[EMAIL PROTECTED] on 03/09/2001 09:42:13 AM
Sent by: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]@SMTP
cc:
Subject: rsync Logging
Classification:
Folks
I am evaluating rsync v2.4.6 (not rsyncd) for distributing configuration
files to multiple
mail servers. All seems to be very good except for the logging
capabilities. I can see
how to get a basic log entry on stdout but how can I get this sent to syslog
in the
appropriate format? Also, does rsync log errors in the same format, eg if
it fails to
transfer a file to the remote server? And lastly, when creating a log
entry, it displays a literal
%h and %a rather than the actual hostname and IP address of the remote
server.
Any help is much appreciated.
Regards
Brian