Re: [Log4sh-users] Log4sh on RHEL4
Brought to you by:
sfsetse
From: jay <tit...@gm...> - 2007-08-08 13:34:10
|
Forgot to include that I'm using log4sh version 1.4.2 with netcat version 1.10. I'm going to try 1.5.0 later and see if that has different results. Jay On 8/8/07, jay <tit...@gm...> wrote: > > Helllo, > > I'm trying to get remote logging using log4sh working on a RHEL4 update 5 > box. I'm having a bit of trouble. > > I ran all of the tests, and local logging works fine, so I know log4sh > runs ok on that release. When I try the sample for remote logging, I get > nothing. I've tested the remote logging with other methods (python) and it > works, so I know its setup correctly. I've tried setting the LOG4SH_DEBUG > environment variable, but I get nothing that could help. No errors in > fact. I have run tcpdump on the other end on port 514, and nothing is > showing up on the wire. Here is the test script I'm using > > #!/bin/sh > > # load log4sh (disabling properties file warning) and clear the default > # configuration > LOG4SH_CONFIGURATION='none' . ./log4sh > log4sh_resetConfiguration > > # set alternative 'nc' command > log4sh_setAlternative nc /usr/bin/nc > > # add and configure a SyslogAppender that logs to a remote host > logger_addAppender mySyslog > appender_setType mySyslog SyslogAppender > appender_syslog_setFacility mySyslog local4 > appender_syslog_setHost mySyslog cbtsscdb > appender_activateOptions mySyslog > > # say Hello to the world > logger_info 'Hello, world' > > Is there something else I could try to troubleshoot this? Thanks for any > help. > > Jay > > |