Appending Collage logs to your site log file
By default, Collage logging information is captured in /opt/cassatt/logs/collage-core.log. However, many system administrators like to streamline system management by using syslog to consolidate log info in one location. If you would like to redirect Collage errors, warnings, or actions to your system log file, use this procedure:
- Edit /etc/sysconfig/syslog and add -r to the SYSLOGD_OPTIONS. For example:
SYSLOGD_OPTIONS="-m 0 -r" - Restart syslog.
- Edit /cassatt/etc/log4j.properties and add syslog to the rootCategory. When done, the rootCategory entry should look like this:
log4j.rootCategory=warn, ccore, syslog
While you're editing the log4j.properties file, note that the default syslog Facility setting (the field that is meant to indicate where in the system the message originated) is local0. You can change that according to your site policy if you need to.
- Restart the Collage service using the following command:
/opt/cassatt/bin/cccoreservice restart
That's all there is to it. Many enterprise sites will likely run some kind of central syslog server. If you work in this kind of environment, or if you just want the convenience of integrating Collage log information into a common logging location, you can use this procedure to redirect Collage events to your system log.


0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home