[rt-users] Syslog on Solaris 10

James Moseley jmoseley at corp.xanadoo.com
Wed Oct 3 08:36:06 EDT 2007


I'd take a look at the following Log section of RT_Config.pm.  Also, take a
look at the Log::Dispatch::Syslog perl module documentation:

# {{{ Logging

# Logging.  The default is to log anything except debugging
# information to syslog.  Check the Log::Dispatch POD for
# information about how to get things by syslog, mail or anything
# else, get debugging info in the log, etc.

#  It might generally make
# sense to send error and higher by email to some administrator.
# If you do this, be careful that this email isn't sent to this RT
instance.

# the minimum level error that will be logged to the specific device.
# levels from lowest to highest:
#  debug info notice warning error critical alert emergency

#  Mail loops will generate a critical log message.
Set($LogToSyslog    , 'debug');
Set($LogToScreen    , 'error');
Set($LogToFile      , undef);
Set($LogDir, '/opt/rt3.6.5/var/log');
Set($LogToFileNamed , "rt.log");    #log to rt.log

# If true generates stack traces to file log or screen
# never generates traces to syslog

Set($LogStackTraces , 0);

# On Solaris or UnixWare, set to ( socket => 'inet' ).  Options here
# override any other options RT passes to Log::Dispatch::Syslog.
# Other interesting flags include facility and logopt.  (See the
# Log::Dispatch::Syslog documentation for more information.)  (Maybe
# ident too, if you have multiple RT installations.)

@LogToSyslogConf = () unless (@LogToSyslogConf);

James Moseley




                                                                           
             Richard Ellis                                                 
             <Richard.Ellis at Su                                             
             n.COM>                                                     To 
             Sent by:                  rt-users at lists.bestpractical.com    
             rt-users-bounces@                                          cc 
             lists.bestpractic                                             
             al.com                                                Subject 
                                       [rt-users] Syslog on Solaris 10     
                                                                           
             10/03/2007 02:35                                              
             AM                                                            
                                                                           
                                                                           
                                                                           




Hi,

I am currently moving our RT instance from 3.4 on a Solaris 9 machine to
3.6 on a Solaris 10 machine and have run into a problem with the system
logging.

For security reasons, our IT guys turn off  the default UDP port 514.
When I asked why, they gave me the following:

"Our builds all turn off the remote syslog port 514. It is generally
considered
a security risk. Some bad person could fill up your disk with bogus
messages.  Local apps should use syslog(3c) or logger(1) to write
to syslog."

Is there a way to convince RT to use logger or syslog(3c) or simply to
write all log output to its own log file instead? This is causing RT to
fail miserably.

Thanks

Richard

--
Richard Ellis
.Sun B2B Operations
Sun Microsystems x24727
http://sun.com


_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales at bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com





More information about the rt-users mailing list