Created 3/7/2013 aaron.enfield · Updated 2/16/2017 aaron.enfield
If the /var partition is not big enough to store your log files, then you might want to change your logging location.
CSN 2.X:
CSN 2.x uses syslogd. To change the logging location within syslogd, first stop syslogd:
service syslog stop
Then, edit the /etc/syslog.conf file.
Change these lines to the destination of your choice:
local5.* /var/log/caringo/cr.log
local6.* /var/log/caringo/castor.log
local0.* /var/log/caringo/csn.log
local3.* /var/log/caringo/scspproxy.log
You can use a simple one-liner like this (assuming that /u01/logs/ is your desired destination):
sed -i 's#/var/log/caringo/#/u01/logs/#g' /etc/syslog.conf
Then restart syslog:
service syslog start
**NOTE: You will have to modify the new location in logrotate in order to rotate your logs as before. This does not require a restart, simply modify all of the desired files in: /etc/logrotate.d/caringo-
CSN 3.X AND LATER:
CSN 3.x uses rsyslog. To change the logging location within rsyslog, first stop rsyslog:
service rsyslog stop
Then, edit the /etc/rsyslog.conf file.
Change these lines to the destination of your choice:
local5.* /var/log/caringo/cr.log
local6.* /var/log/caringo/castor.log
local0.* /var/log/caringo/csn.log
local3.* /var/log/caringo/scspproxy.log
You can use a simple one-liner like this (assuming that /u01/logs/ is your desired destination):
sed -i 's#/var/log/caringo/#/u01/logs/#g' /etc/rsyslog.conf
Then restart syslog:
service rsyslog start
**NOTE: You will have to modify the new location in logrotate in order to rotate your logs as before. This does not require a restart, simply modify all of the desired files in: /etc/logrotate.d/caringo-