You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Vicson Victor <vv...@ntrs.com> on 2008/05/30 18:26:43 UTC
[Chainsaw] Can we stream events from two log files into the same tab
Hi All,
I am able to stream log events from xml log files over SSH, but I would
like to stream events from two different log files into the same tab on
chainsaw.
I do not know how to do it, can anyone help me please?
Thanks a lot.
Vicson.
RE: [Chainsaw] Can we stream events from two log files into the same tab
Posted by Scott Deboy <sd...@comotivsystems.com>.
You have a couple of options:
- Change the system-wide 'tab identifier'
Events are routed to chainsaw based on the fields in the event. The
default tab identifier is 'PROP.hostname - PROP.application', meaning
each event is examined for a 'hostname' and 'application' properties,
and the values are concatenated together with a ' - ', and whatever
value that is, that's the tab that event goes to.
See the tutorial (from the help menu) for a list of valid identifiers.
I believe the file-based receivers hijack the hostname and application
properties in order to build a tab that makes sense, so you would
probably need to use some other event attribute or property.
You could use LEVEL as the tab identifier (you'd get one tab for each
level). You can even use EVENTS as a tab identifier (all events from
all sources go to a single EVENTS tab).
- create a new tab that is a 'view' of events on other tabs
Use the 'view, create custom expression logpanel' menu and build an
expression (again, see the tutorial) that will collect your events from
the two log files into a single tab (usually an expression like 'logger
~= com.yourcompany' will work).
Hope that helps
Scott
Scott Deboy
Principal Engineer
COMOTIV SYSTEMS
111 SW Columbia Street Ste. 950
Portland, OR 97201
Office: 503.224.7496
Direct Line: 503.821.6482
Cell: 503.997.1367
Fax: 503.222.0185
sdeboy@comotivsystems.com
www.comotivsystems.com
-----Original Message-----
From: Vicson Victor [mailto:vv22@ntrs.com]
Sent: Friday, May 30, 2008 9:27 AM
To: Log4J Users List
Subject: [Chainsaw] Can we stream events from two log files into the
same tab
Hi All,
I am able to stream log events from xml log files over SSH, but I would
like to stream events from two different log files into the same tab on
chainsaw.
I do not know how to do it, can anyone help me please?
Thanks a lot.
Vicson.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org