rsync
rsync copied to clipboard
"syslog tag" does not support variables
The manual page tells the following:
For example, if you wanted each authenticated user's name to be included in the syslog tag, you could do something like this: syslog tag = rsyncd.%RSYNC_USER_NAME%
But when I set this options on the rsyncd.conf file the logs in syslog did not use the value of the variable %RSYNC_USER_NAME%
Nov 24 09:36:38 myhostname rsyncd.%RSYNC_USER_NAME%[2721278]: connect from UNDETERMINED (1.2.3.4)
Nov 24 09:36:38 myhostname rsyncd.%RSYNC_USER_NAME%[2721278]: rsync allowed access on module mymodulename from UNDETERMINED (1.2.3.4)
Nov 24 09:36:38 myhostname rsyncd.%RSYNC_USER_NAME%[2721278]: rsync to folder/file.extension from username@UNDETERMINED (1.2.3.4)
Nov 24 09:36:38 myhostname rsyncd.%RSYNC_USER_NAME%[2721278]: receiving file list
Nov 24 09:36:52 myhostname rsyncd.%RSYNC_USER_NAME%[2721278]: recv UNDETERMINED [1.2.3.4] userormodule (userormodule) mktemp-_00wcoda-314 157269343
Nov 24 09:36:53 myhostname rsyncd.%RSYNC_USER_NAME%[2721278]: sent 40 bytes received 157307837 bytes total size 157269343
I tried with other variables and same problem:
syslog tag = rsyncd.%RSYNC_USER_NAME%@%RSYNC_HOST_ADDR%:%RSYNC_MODULE_NAME%:%RSYNC_MODULE_PATH%
Nov 24 09:41:17 myhostname rsyncd.%RSYNC_USER_NAME%@%RSYNC_HOST_ADDR%:%RSYNC_MODULE_NAME%:%RSYNC_MODULE_PATH%[2721311]: sent 0 bytes received 0 bytes total size 0