mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-24 20:20:33 +00:00
Add new configuration files for rsyslog and logrotate
This commit is contained in:
7
xCAT/etc/logrotate.d/xcat
Normal file
7
xCAT/etc/logrotate.d/xcat
Normal file
@@ -0,0 +1,7 @@
|
||||
/var/log/xcat/*.log {
|
||||
missingok
|
||||
sharedscripts
|
||||
postrotate
|
||||
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
|
||||
endscript
|
||||
}
|
2
xCAT/etc/rsyslog.d/xcat-cluster.conf
Normal file
2
xCAT/etc/rsyslog.d/xcat-cluster.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
$template xCATTraditionalFormat0,"%timegenerated% %HOSTNAME% %syslogtag% %msg:::drop-last-lf%\n"
|
||||
:syslogtag, isequal, "xcat" /var/log/xcat/cluster.log;xCATTraditionalFormat0
|
2
xCAT/etc/rsyslog.d/xcat-compute.conf
Normal file
2
xCAT/etc/rsyslog.d/xcat-compute.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
$template xCATTraditionalFormat9,"%timegenerated% %HOSTNAME% %syslogtag% %msg:::drop-last-lf%\n"
|
||||
:hostname, [!]isequal, $myhostname /var/log/xcat/computes.log;xCATTraditionalFormat9
|
Reference in New Issue
Block a user