Re: [Log4sh-users] Log4sh on RHEL4
Brought to you by:
sfsetse
From: Kate W. <kat...@fo...> - 2007-08-08 15:59:13
|
Could you run your script with a -x option (either by adding it to the sha-bang line, or with a set -x), and put the output somewhere where I could grab it? - kate On 8/8/07, jay <tit...@gm...> wrote: > > 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 > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > log4sh-users mailing list > log...@li... > https://lists.sourceforge.net/lists/listinfo/log4sh-users > > -- Kate Ward <kat...@fo...> |