5 Replies Latest reply on Oct 22, 2008 12:10 PM by peterj

    Log to syslog

      All,
      I am trying to set JBoss 4.2.3 to log to syslog. I have edited jboss-log4j.xml with this...

      {code}
      <!-- Syslog events -->









      {code}

      I have also added this statement to my syslog.conf configuration....
      {code}
      # Log JBoss
      JBOSS.* /var/log/jboss
      {code}

      It is not logging, is there something that I am missing here.
      Thanks for the help!

        • 1. Re: Log to syslog

          hmmm... dont know how to edit this post so I will repost the Syslog config which magically disappeared


          <!-- Syslog events -->









          • 2. Re: Log to syslog

            doh why will it not take it

            <!-- Syslog events -->
             <appender name="SYSLOG" class="org.apache.log4j.net.SyslogAppender">
             <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
             <param name="Facility" value="JBOSS"/>
             <param name="FacilityPrinting" value="true"/>
             <param name="SyslogHost" value="localhost"/>
             <layout class="org.apache.log4j.PatternLayout">
             <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}] %m%n"/>
             </layout>
             </appender>



            • 3. Re: Log to syslog
              peterj

              According to the javadoc:

              The <code>facilityName</code> parameter must be one of the
              strings KERN, USER, MAIL, DAEMON, AUTH, SYSLOG, LPR, NEWS, UUCP,
              CRON, AUTHPRIV, FTP, LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4,
              LOCAL5, LOCAL6, LOCAL7. Case is unimportant.


              And it does look like the setFacility() code checks for the name.

              • 4. Re: Log to syslog
                rajamurugank

                Hi,

                I have also same issue.If you got any solution for this issue .

                plese reply back.

                Regards,
                RajaK

                • 5. Re: Log to syslog
                  peterj

                  RajaK, based on your other post, you do not have this same error. In fact, this post provides the answer to the question you asked in your other post.

                  http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183873#4183873