You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chris Pratt <pr...@gmail.com> on 2008/06/12 22:44:09 UTC

Any users with centralized logging?

Hi all,

Have a vanilla tomcat & coherence instance logging to local files--
CATALINA_BASE/logs and CACHE/logs.  I am implementing a central
logserver and want to get these into the syslog. 

I tried

tail -f [file log] | logger -p local#.info

||||but this resulted in each wrapped line occurring as a new syslog
message.  The tomcat and coherence events are rather long and can
include stack traces.  I want to keep the entirety of their events as a
single message event in syslog.

Has anyone faced and conquered a similar issue?  Thanks in advance.

Chris

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Any users with centralized logging?

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
it would probably be easier to write a custom logger for the tomcat 
logger, that sends the entire message, as it is to where you want it

Filip

Chris Pratt wrote:
> Hi all,
>
> Have a vanilla tomcat & coherence instance logging to local files--
> CATALINA_BASE/logs and CACHE/logs.  I am implementing a central
> logserver and want to get these into the syslog. 
>
> I tried
>
> tail -f [file log] | logger -p local#.info
>
> ||||but this resulted in each wrapped line occurring as a new syslog
> message.  The tomcat and coherence events are rather long and can
> include stack traces.  I want to keep the entirety of their events as a
> single message event in syslog.
>
> Has anyone faced and conquered a similar issue?  Thanks in advance.
>
> Chris
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>   


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org