[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-user
Subject:    syslog-ng program macro...problem
From:       Srinivas_Biragoni () 3com ! com
Date:       2006-02-23 15:30:45
Message-ID: OFC9C6C21F.E754D8BD-ON6525711E.0052A50E-6525711E.00546687 () 3com ! com
[Download RAW message or body]





Hi All,

  I am working with syslog-ng logs using log4j , the thing is i am able to
generate the logs from syslog-ng , but the program macro is not working
properly..I am using the following line in syslog-ng.conf file to generate
the syslog-ng.xml.log file ..

destination d_auth_xml { file("/var/log/syslog-ng.xml.log",
                              perm(0644),
                        template("<log_entry facility=\"$FACILITY\"
priority=\"$PRIORITY\" host=\"$HOST\" date=\"$ISODATE\"
    program=\"$PROGRAM\"><![CDATA[\"$MSG\"]]></log_entry>\n")
                        );
                   };

 My log file is displaying the following logs when i authenticated from my
webappl....so basically in program field it displaying the first word of
message.

<log_entry facility="authpriv" priority="info" host="vcxhost"
date="2006-02-21T04:16:40+0530" program="Authentication"/><![CDATA["
Authentication succeeded for user"]]></log_entry>
<log_entry facility="authpriv" priority="info" host="vcxhost"
date="2006-02-21T04:16:40+0530" program="Authentication"/><![CDATA["
Authentication succeeded for user"]]></log_entry>

If i start tomcat  , the log file displaying the program macro correctly as
"tomcat"

<log_entry facility="syslog" priority="notice" host="vcxhost"
date="2006-02-21T04:16:40+0530" program="tomcat"/><![CDATA["Starting
tomcat"]]></log_entry>
<log_entry facility="syslog" priority="notice" host="vcxhost"
date="2006-02-21T04:16:40+0530" program="tomcat"/><![CDATA["Starting
tomcat"]]></log_entry>

Any one come across with this problem?? pls help me out...

Thanks in Advance.

-Srinivas.



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic