One minor change: Here's an updated logFormat that will create a new 'machine' property for the portion of the logger name after the @ symbol:
[TIMESTAMP] LEVEL*:[EMAIL PROTECTED](machine):NDC:MESSAGE Scott Deboy COMOTIV SYSTEMS 111 SW Columbia Street Ste. 950 Portland, OR 97201 Telephone: 503.224.7496 Cell: 503.997.1367 Fax: 503.222.0185 [EMAIL PROTECTED] www.comotivsystems.com -----Original Message----- From: Scott Deboy [mailto:[EMAIL PROTECTED] Sent: Wed 2/1/2006 7:55 AM To: Log4J Users List Subject: RE: Trouble specifing logFormat in LogFileReceiver I was able to process this event: [2006-02-01 15:33:57] INFO :[EMAIL PROTECTED]:articles: Finished running Using this logFormat expression: [TIMESTAMP] LEVEL*:LOGGER:NDC:MESSAGE And this timestamp format: yyyy-MM-d HH:mm:ss I assumed there were extra spaces after the level, thus the * Hope this helps Scott Deboy COMOTIV SYSTEMS 111 SW Columbia Street Ste. 950 Portland, OR 97201 Telephone: 503.224.7496 Cell: 503.997.1367 Fax: 503.222.0185 [EMAIL PROTECTED] www.comotivsystems.com -----Original Message----- From: Thomas Svensen [mailto:[EMAIL PROTECTED] Sent: Wed 2/1/2006 7:45 AM To: [email protected] Subject: Trouble specifing logFormat in LogFileReceiver Hi, I am trying to use Chainsaw to read our log files, which are in fact generated by a C++ application, but conforms quite well with normal log4j formats. Here is a sample line from our log: [2006-02-01 15:33:57] INFO : [EMAIL PROTECTED]: articles: Finished running I am trying to parse this data using a LogFileReceiver, and it is working quite well! But I just can't get it to work 100%, because I struggle with the logFormat. It seems impossible to get the "logger", "message" and "NDC" right at the same time. Given the above log line, I would hope to get these entries: logger: no.fast.connector.framework.ConnectorManager (or with the @osl...) message: Finished running ndc: articles (optionally, this could be part of the "message") Anyway, I loose the "logger", or I loose the message :-( I've tried all of these logformats (and more): [TIMESTAMP] LEVEL : LOGGER: MESSAGE [TIMESTAMP] LEVEL : LOGGER: NDC: MESSAGE [TIMESTAMP] LEVEL :LOGGER: NDC: MESSAGE [TIMESTAMP] LEVEL LOGGER: NDC: MESSAGE etc. For some version, Chainsaw logs an "Invalid filter expression", but for most, I just get the wrong data in the wrong fields. Any help on how to get a working logFormat would be highly appreciated! As a last resort, I'll consider building my own version. Any hints on how to easily to that would also be nice :-) Thanks in advance! ______________________ Thomas Svensen Senior Solutions Engineer Fast Search & Transfer Chr. Fredriks plass 6, Oslo Mobile +47 48 01 12 63 www.fastsearch.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
