some problems about CBE&GLA [message #21183] |
Wed, 06 July 2005 00:58  |
Eclipse User |
|
|
|
Hi,all
I want to know how can I deal with the problem descripted following by
using Generic Log Adaptor.
As you know GLA uses sensor to read the log content for processing.then the
extractor takes a collection of input lines provided by the sensor and
separate these into message boundaries.In this stage ,we should define Start
Pattern and End Pattern to get a whole record item which may span several
lines and at the same time the format of this record is not regular.Follwing
is the demo format:
18cc2ec4 WC_INVENTORY d
5Ymw7jS%2fFk%2fizLNiz5nTIiCJ8W4%3d%0a
com.ibm.commerce.fulfillment.commands.ATPParameters.init ihsBackorder =
{6001=com.ibm.commerce.order.objects.OrderItemAccessBean@6095eee5}
18cc2ec4 WC_INVENTORY d
5Ymw7jS%2fFk%2fizLNiz5nTIiCJ8W4%3d%0a
com.ibm.commerce.fulfillment.commands.ATPParameters.init ihsReverse = {}
18cc2ec4 WC_INVENTORY d
5Ymw7jS%2fFk%2fizLNiz5nTIiCJ8W4%3d%0a
com.ibm.commerce.fulfillment.commands.ATPParameters.display
Order Items Lists
Merge : [] Remerge : [] Check : Allocate: Backorder :
Reverse : []
[5/30/05 17:49:11:984 GMT+08:00] 18cc2ec4 WC_ORDER >
5Ymw7jS%2fFk%2fizLNiz5nTIiCJ8W4%3d%0a
com.ibm.commerce.order.commands.OrderItemBaseCmdImpl.updateR esourceList
Entry
[5/30/05 17:49:11:984 GMT+08:00] 18cc2ec4 WC_ORDER d
5Ymw7jS%2fFk%2fizLNiz5nTIiCJ8W4%3d%0a
com.ibm.commerce.order.commands.OrderItemBaseCmdImpl.updateR esourceList Add
orderAB resource, id=1501
[5/30/05 17:49:11:984 GMT+08:00] 18cc2ec4 WC_ORDER <
5Ymw7jS%2fFk%2fizLNiz5nTIiCJ8W4%3d%0a
com.ibm.commerce.order.commands.OrderItemBaseCmdImpl.updateR esourceList Exit
here is the comments:each record item is starting with
"[5/30/05..........",so some of the items span several line.I find it is
hard for me to catch a whole item which spans several lines.
|
|
|
Re: some problems about CBE&GLA [message #24589 is a reply to message #21183] |
Tue, 02 August 2005 17:52  |
Eclipse User |
|
|
|
Originally posted by: nobody.nobody.com
Try specifying a Start Pattern that will match the timestamp. For example:
^\
You do not require an End Pattern in this case. If no End Pattern is
specified, the Extractor will determine the end of the record as the
character before the next Start Pattern match.
"wangxq" <xqwang@cn.ibm.com> wrote in message
news:dafoe1$7s4$1@news.eclipse.org...
> Hi,all
> I want to know how can I deal with the problem descripted following by
> using Generic Log Adaptor.
> As you know GLA uses sensor to read the log content for processing.then
the
> extractor takes a collection of input lines provided by the sensor and
> separate these into message boundaries.In this stage ,we should define
Start
> Pattern and End Pattern to get a whole record item which may span several
> lines and at the same time the format of this record is not
regular.Follwing
> is the demo format:
>
> 18cc2ec4 WC_INVENTORY d
> 5Ymw7jS%2fFk%2fizLNiz5nTIiCJ8W4%3d%0a
> com.ibm.commerce.fulfillment.commands.ATPParameters.init ihsBackorder =
> {6001=com.ibm.commerce.order.objects.OrderItemAccessBean@6095eee5}
> 18cc2ec4 WC_INVENTORY d
> 5Ymw7jS%2fFk%2fizLNiz5nTIiCJ8W4%3d%0a
> com.ibm.commerce.fulfillment.commands.ATPParameters.init ihsReverse = {}
> 18cc2ec4 WC_INVENTORY d
> 5Ymw7jS%2fFk%2fizLNiz5nTIiCJ8W4%3d%0a
> com.ibm.commerce.fulfillment.commands.ATPParameters.display
> Order Items Lists
>
> Merge : [] Remerge : [] Check : Allocate: Backorder :
> Reverse : []
>
> [5/30/05 17:49:11:984 GMT+08:00] 18cc2ec4 WC_ORDER >
> 5Ymw7jS%2fFk%2fizLNiz5nTIiCJ8W4%3d%0a
> com.ibm.commerce.order.commands.OrderItemBaseCmdImpl.updateR esourceList
> Entry
> [5/30/05 17:49:11:984 GMT+08:00] 18cc2ec4 WC_ORDER d
> 5Ymw7jS%2fFk%2fizLNiz5nTIiCJ8W4%3d%0a
> com.ibm.commerce.order.commands.OrderItemBaseCmdImpl.updateR esourceList
Add
> orderAB resource, id=1501
> [5/30/05 17:49:11:984 GMT+08:00] 18cc2ec4 WC_ORDER <
> 5Ymw7jS%2fFk%2fizLNiz5nTIiCJ8W4%3d%0a
> com.ibm.commerce.order.commands.OrderItemBaseCmdImpl.updateR esourceList
Exit
>
> here is the comments:each record item is starting with
> "[5/30/05..........",so some of the items span several line.I find it is
> hard for me to catch a whole item which spans several lines.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03010 seconds