SEARCH DOCS
info central: your site for Cassatt technical info
  CASSATT.COM   ic HOME
 

Want to be notified when there are updates to the Info Central What's New blog? Paste this link into your news reader. Subscribe to
Posts [Atom]. [Site Feed]

 
 
 
 
 

Powered by Blogger


what's new:

Monday, May 14, 2007

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:
  1. Edit /etc/sysconfig/syslog and add -r to the SYSLOGD_OPTIONS. For example:
    SYSLOGD_OPTIONS="-m 0 -r"
  2. Restart syslog.
  3. 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.

  4. 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.

Labels:

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home