How do I change my logging location on my CSN?

If the /var partition is not big enough to store your log files, then you might want to change your logging location.

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 the applicable lines to the destination of your choice:

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-

© DataCore Software Corporation. · https://www.datacore.com · All rights reserved.