[syslog-ng] Tailing tomcat catalina.out

Alan McKinnon Alan.McKinnon at is.co.za
Tue Mar 30 08:58:58 CEST 2010


Use a template and $MESSAGE in the destination. 

destination d_tomcat_catalina { 
  file("/path/to/destination/file", 
  template("$MESSAGE\n") ); 
};




On Tuesday 30 March 2010 08:52:33 BoOnSiOnG wrote:
> Hello all,
> 
> Good day, I have configure syslog-ng to checks catalina.out every
> second, but syslog-ng will append date time and machine name to the
> log, I would like to know is it possible to configure syslog-ng do not
> alter the original log?
> 
> my config,
> 
> source s_tomcat_catalina {
>                file("/srv/tomcat/logs/catalina.out"
>                                default-facility(local3)
> default-priority(info)); };
> 
> 
> log output,
> Mar 29 21:43:38 forward Mar: 29, 2010 9:43:37 PM
> org.apache.coyote.http11.Http11Protocol start
> Mar 29 21:43:38 forward INFO: Starting Coyote HTTP/1.1 on http-8080
> Mar 29 21:43:38 forward Mar: 29, 2010 9:43:37 PM
> org.apache.jk.common.ChannelSocket init
> Mar 29 21:43:38 forward INFO: JK: ajp13 listening on /0.0.0.0:8009
> Mar 29 21:43:38 forward Mar: 29, 2010 9:43:37 PM
> org.apache.jk.server.JkMain start
> Mar 29 21:43:38 forward INFO: Jk running ID=0 time=0/14  config=null
> Mar 29 21:43:38 forward Mar: 29, 2010 9:43:37 PM
> org.apache.catalina.startup.Catalina start
> Mar 29 21:43:38 forward INFO: Server startup in 428 ms
> 
> Thanks. :)
> ___________________________________________________________________________
> ___ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation:
> http://www.balabit.com/support/documentation/?product=syslog-ng FAQ:
> http://www.campin.net/syslog-ng/faq.html

-- 
Alan McKinnon
Systems Engineer^W Technician
Infrastructure Services
Internet Solutions

+27 11 575 7585

Please note: This email and its content are subject to the disclaimer as displayed at the following link http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. Should you not have Web access, send a mail to disclaimers at is.co.za and a copy will be emailed to you.


More information about the syslog-ng mailing list