I want to use a centos6.5 do log backups for the other two servers, but now the system log backup all together, can respectively for each server in a separate file? O great god only recruit
CodePudding user response:
In the configuration/etc/rsyslog. Conf # # # # # # # # GLOBAL DIRECTIVES above with similar configuration: The template RemoteLogs, "/data/log/HOSTNAME/% % % % PROGRAMNAME. Log" * *. *? RemoteHost
This format, what can define your own store directory: Similar and $template RemoteHost, "/data/% $YEAR % % % % $MONTH - $DAY % %/% FROMHOST - IP. The log" *. *? RemoteHost