HI. I am aware that DATA and GREEDYDATA are expensive patterns but those are most simple to use. I am using following pattern to extract data out of JMS XML . I am pasting both Input as well as Pattern which I have configured . Please Help me to build optimum pattern. Tried all possible patterns to reduce use of DATA and GREEDYDATA but nothing worked.
Input :-
####<04-Feb-2020 18:20:07 o'clock GMT> <> <1580840407665> <929588> <ID:<360433.1580840407631.0>> <> <com.my.capact.dl.jms.ipub.jmsmodule.NIAB-NPMD-DL-01!com.my.capact.dl.jms.ipub.mli.notification.NIAB-NPMD-DL-01> <> <> <<?xml version="1.0" encoding="UTF-8"?><mes:WLJMSMessage xmlns:mes="http://www.bea.com/WLS/JMS/Message"><mes:Header><mes:JMSTimestamp>1580840407631</mes:JMSTimestamp><mes:Properties/></mes:Header><mes:Body><mes:Text><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m="http://capabilities.nat.my.com/xsd/ManageEventNotification/2006/12/30" xmlns:m0="http://wsi.nat.my.com/2005/06/StandardHeader/" xmlns:m1="http://capabilities.nat.my.com/xsd/ManageEventNotification/2006/12/30/CCM/Events"><soapenv:Body><m:notify><m0:standardHeader><m0:e2e><m0:E2EDATA>E2E.busTxnStage=NOT,E2E.compTxnName=P1,E2E.compTxnID=4p3zpoljmy,E2E.from=IPUB-ROmy,E2E.to=MQREP,E2E.graphID=1.1.1.1,E2E.threadID=4f38vq5djz,E2E.busProcType=notify,E2E.busProcOriginator=NMDB-MLI,E2E.threadID.1=:,E2E.busTxnType=MENNotifications,E2E.busTxnHdr=PCK002069,E2E.busTxnSys=NMDB_MENNotifica,E2E.busTxnLoc=UNKNOWN,E2E.busTxnUsr=wbrkadm,E2E.busTxnSeq=4f38vq5co9</m0:E2EDATA></m0:e2e><m0:serviceState><m0:stateCode>OK</m0:stateCode><m0:errorCode>0</m0:errorCode><m0:errorDesc/><m0:errorText>0</m0:errorText></m0:serviceState><m0:serviceAddressing><m0:from>http://capabilities.nat.my.com/ManageEventNotification/2006/12/30</m0:from><m0:to><m0:address>java://com.my.capact.dl.jms.ipub.mli.notification.NIAB-NPMD-DL-01@com.my.capact.dl.jms.ipub.cf.NIAB-NPMD-DL-01</m0:address></m0:to><m0:messageId/><m0:serviceName>http://capabilities.nat.my.com/ManageEventNotification/2006/12/30</m0:serviceName><m0:action>http://capabilities.nat.my.com/ManageEventNotification/2006/12/30#notify</m0:action></m0:serviceAddressing><m0:serviceSpecification><m0:payloadFormat>XML</m0:payloadFormat><m0:version>1.0</m0:version><m0:revision/></m0:serviceSpecification></m0:standardHeader><m:notificationMessage><m1:laxTopicValidation>false</m1:laxTopicValidation><m1:subscriptionReference><m1:address>uuid:f31a19f4-0a9d-11ea-9fc2-0abba92a0000</m1:address></m1:subscriptionReference><m1:message><mlidata:inventory xmlns:ssp1="https://collaborate.my.com/svn/edm/ssp/trunk/UnstructuredAddress.xsd" xmlns:ssp="https://collaborate.my.com/svn/edm/ssp/trunk/Address.xsd" xmlns:adli="https://collaborate.my.com/svn/edm/adli/IPAddress" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:head="http://wsi.nat.my.com/2005/06/StandardHeader/" xmlns:mlidata="http://collaborate.my.com/svn/sdkrepo/pbp/MLI/tags/8/ManageLogicalInventoryData/" xsi:schemaLocation="http://collaborate.my.com/svn/sdkrepo/pbp/MLI/tags/8/ManageLogicalInventoryData/ ManageLogicalInventoryData.xsd"><head:standardHeader><head:e2e><head:E2EDATA/></head:e2e><head:serviceState><head:stateCode>OK</head:stateCode></head:serviceState><head:serviceAddressing><head:from>http://capabilities.nat.my.com/ManageLogicalInventory/APP06104</head:from><head:to><head:address>http://capabilities.nat.my.com/ManageLogicalInventory/NIAB-NPMD-DL-01</head:address></head:to><head:replyTo><head:address>http://capabilities.nat.my.com/ManageLogicalInventory/APP06104</head:address></head:replyTo><head:messageId>145498609</head:messageId><head:serviceName>http://capabilities.nat.my.com/ManageLogicalInventory</head:serviceName><head:action>inventoryNotification</head:action></head:serviceAddressing><head:serviceSpecification><head:payloadFormat>XML</head:payloadFormat><head:version>8.0</head:version><head:revision/></head:serviceSpecification></head:standardHeader><mlidata:logicalInventory messageType="Notification"><mlidata:numberOfRecords>1</mlidata:numberOfRecords><mlidata:startIndex>1</mlidata:startIndex><mlidata:managementDomains><mlidata:managementDomain><mlidata:name><mlidata:rdn><mlidata:type>AID</mlidata:type><mlidata:value/></mlidata:rdn></mlidata:name><mlidata:id/><mlidata:managedElements><mlidata:managedElement><mlidata:id>1064145334</mlidata:id><mlidata:aliasNames><mlidata:aliasName><mlidata:key>BFGDeviceId</mlidata:key><mlidata:value>19987711</mlidata:value></mlidata:aliasName><mlidata:aliasName><mlidata:key>NetworkName</mlidata:key><mlidata:value>EU-Switzerland</mlidata:value></mlidata:aliasName><mlidata:aliasName><mlidata:key>SysObjectId</mlidata:key><mlidata:value/></mlidata:aliasName></mlidata:aliasNames><mlidata:userLabel/><mlidata:owner>NMDB</mlidata:owner><mlidata:namingOS/><mlidata:source>NETWORK_EMS</mlidata:source><mlidata:resourceState>INSTALLED</mlidata:resourceState><mlidata:resourceDates><mlidata:resourceDate><mlidata:dateType>ACTUAL_DATE</mlidata:dateType><mlidata:resourceState>INSTALLED</mlidata:resourceState><mlidata:dateTime>2018-01-23T15:29:48.0Z</mlidata:dateTime></mlidata:resourceDate><mlidata:resourceDate><mlidata:dateType>LAST_MODIFIED_DATE</mlidata:dateType><mlidata:resourceState>INSTALLED</mlidata:resourceState><mlidata:dateTime>2020-02-04T18:16:53.0Z</mlidata:dateTime></mlidata:resourceDate></mlidata:resourceDates><mlidata:operationalState>Y</mlidata:operationalState><mlidata:probes/><mlidata:logicalLocation><mlidata:siteId>3681373</mlidata:siteId><mlidata:name>EU-CH-ZUTH</mlidata:name><mlidata:addressRef><ssp:addressKey/><ssp:street/><ssp:city/><ssp:countyStateProvince/><ssp:country/><ssp:postCode/><ssp:dateTimeCreated/>lt;/mlidata:additionalInfo><mlidata:additionalInfo><mlidata:key>REPORT_SERVICE_LEVEL</mlidata:key><mlidata:value/></mlidata:additionalInfo><mlidata:additionalInfo><mlidata:key>DeviceCategory</mlidata:key><mlidata:value>Managed</mlidata:value></mlidata:additionalInfo><mlidata:additionalInfo><mlidata:key>DeviceStatus</mlidata:key><mlidata:value>In Service</mlidata:value></mlidata:additionalInfo><mlidata:additionalInfo><mlidata:key>SerialNumber</mlidata:key>mlidata:value/></mlidata:additionalInfo><mlidata:additionalInfo><mlidata:key>NTN_SSV_ID</mlidata:key><mlidata:value>2949540</mlidata:value></mlidata:additionalInfo><mlidata:additionalInfo><mlidata:key>CEASED_DATE</mlidata:key><mlidata:value/></mlidata:additionalInfo><mlidata:additionalInfo><mlidata:key>CollectedSerialNumber</mlidata:key><mlidata:value/></mlidata:additionalInfo><mlidata:additionalInfo><mlidata:key>HsrpIpAddress</mlidata:key><mlidata:value/></mlidata:additionalInfo><mlidata:additionalInfo><mlidata:key>CustomerHostName/mlidata:additionalInfo></mlidata:meVendorExtensions><mlidata:managementIPAddresses><mlidata:ipAddress><adli:ipName/><adli:ipValue/><adli:dnsName>abc-ch-zuth-as01</adli:dnsName><adli:dnsNameAlias/><adli:subnetworkMask/><adli:ippool/><adli:ipType>Management</adli:ipType></mlidata:ipAddress><mlidata:ipAddress><adli:ipName/><adli:ipValue>10.20.30.40</adli:ipValue><adli:dnsName/><adli:dnsNameAlias/><adli:subnetworkMask/><adli:ippool/><adli:ipType>Customer</adli:ipType></mlidata:ipAddress><mlidata:ipAddress><adli:ipName/><adli:ipValue/><adli:dnsName/><adli:dnsNameAlias/><adli:subnetworkMask/><adli:ippool/><adli:ipType>CustomerIPv6</adli:ipType></mlidata:ipAddress></mlidata:managementIPAddresses></mlidata:managedElement></mlidata:managedElements></mlidata:managementDomain></mlidata:managementDomains></mlidata:logicalInventory></mlidata:inventory></m1:message><m1:topic><m1:name>http://itprogrammes.intra.my.com/topics:/my_GS/MLI/Device</m1:name></m1:topic><m1:defaultPersistence>true</m1:defaultPersistence><m1:creationTime>v_soap_date1</m1:creationTime><m1:timeToLive xsi:nil="true"/><m1:producerReference><m1:address>NMDB</m1:address></m1:producerReference></m:notificationMessage></m:notify></soapenv:Body></soapenv:Envelope></mes:Text></mes:Body></mes:WLJMSMessage>> <>
Pattern I have created is :-
<%{DATA:DateTime}>%{SPACE:thrash}<%{DATA:thrash}ID:<%{DATA:jms_message_id}>%{DATA:thrash}!%{DATA:jms_destination}> <%{DATA:jms_message_status}>%{DATA:thrash}soapenv%{DATA:thrash}mlidata:inventory%{DATA:thrash}ManageLogicalInventoryData.xsd%{DATA:thrash}messageId>%{DATA:mliMessageId}<%{DATA:thrash}head:serviceSpecification%{DATA:thrash}mlidata:numberOfRecords%{DATA:thrash}mlidata:managedElements%{DATA:thrash}BFGDeviceId%{DATA:thrash}value>%{DATA:mliDeviceBFGId}<%{DATA:thrash}SysObjectId%{DATA:thrash}NETWORK_EMS%{DATA:thrash}LAST_MODIFIED_DATE%{DATA:thrash}mlidata:logicalLocation%{DATA:thrash}mlidata:meVendorExtensions%{DATA:thrash}BFGProductType%{DATA:thrash}CustomerName%{DATA:thrash}mlidata:value>%{DATA:mliDeviceCustomerName}<%{DATA:thrash}REPORT_SERVICE_LEVEL%{DATA:thrash}DeviceStatus%{DATA:thrash}value>%{DATA:mliDeviceFlowStatus}<%{DATA:thrash}NTN_SSV_ID%{DATA:thrash}CustomerHostName%{DATA:thrash}mlidata:managementIPAddresses%{DATA:thrash}dnsName>%{DATA:mliDevice_Hostname}<%{DATA:thrash}ipAddress%{DATA:thrash}ipAddress><adli:ipName%{DATA:thrash}ipValue>%{DATA:mliDeviceIPAddress}<