2 Replies Latest reply on Jun 28, 2010 7:24 AM by Dmitry Ka

    jboss log to syslog-ng

    Dmitry Ka Newbie

      Hi all!

      I'm trying redirect jboss log to syslog server (syslog-ng). Here is my configs:


      lod4j.xml (v1.0.8)


      <!-- Syslog events-->
        <appender name="SYSLOG">
            <param name="Facility" value="LOCAL7"/>
           <param  name="FacilityPrinting" value="true"/>
           <param  name="SyslogHost" value=""/>
               <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}]  %m%n"/>



      <appender-ref ref="ROBOTS" />
      <appender-ref ref="ROBOTS-STATISTICS" />
      <appender-ref ref="SYSLOG" />
      <appender-ref ref="FILE" />
      <appender-ref ref="CONSOLE" />


      and line code from "syslog-ng.conf"


      source from_all { udp (ip("") port(514)); };
      destination to_all { file ( "/var/log/HOSTS/$HOST/log" perm(0640) dir_perm(0755)  create_dirs(yes)); };
      log { source(from_all); destination(to_all); };


      But log-file doesn't created. I looked traffic to syslog-server from jboss = nothing, nothing activities from jboss server (except connection db). That means syslog appender of jboss doesn't work?  Where my mistake?