Challenges in finding and copying the block

Hi, I have a below challenging task where iam unable to find the block and copy the same into a file.

I tried my luck,howver iam unable to reach the first and second step..Can anyone help me with a clue or with the commands so that i can give a try.

  1. search the <number>9966993366</number> and find the jobid which is Job-107544
  2. Once u find the jobid copy the starting of the line to till the other jobid starts.

Ex-1

2013 Jan 23 09:12:02:716 IST +0 BW.TEST-2-Process_Archive Debug [BW-User] DEBUG Job-107544 [UtilityService
s/BWFLIB_Logging/BWFLIB_getLogger.process/GA_WL_LOGDEBUG]: Wed, Jan 23, 2013, 09:12:02 698[1111732318]::
LogMessage::CallSYs1AndSystem2SubProcess:: CallSystem1AndSystem2SubProcess.Start.1Process Started
ProcessID:: 107544
ProjectName:: TEST-2_root
EngineName:: TEST-2-Process_Archive
RestartedFromCheckpoint:: false
TrackingInfo:: System2ServicevCustomerRequest-382_1358932322623
CustomId:: 192.168.248.250:6961937c:13a2b960ad6:-7ffd

2013 Jan 23 09:12:02:746 IST +0 BW.TEST-2-Process_Archive Debug [BW-User] DEBUG Job-107544 [UtilityService
s/BWFLIB_Logging/BWFLIB_getLogger.process/GA_WL_LOGDEBUG]: Wed, Jan 23, 2013, 09:12:02 728[1111732318]::
SendSubject::TEST.GB.COMPANY1.System1Adapter.Request._Null_.vCustomer.1
ReplySubject:: _INBOX
TrackingInfo:: System2ServicevCustomerRequest-382_1358932322623
OriginalMessage:: <?xml version="1.0" encoding="UTF-8"?>
<H1GGGGSS_SPR_VERIFY_CUSTOMER_INPUT><ser>H1GGGGSS_SPR_VERIFY_CUST_INP</ser><number>9966993366</number><ACCOUNT_ID>9400048048</ACCOUNT_ID><HOUSE_NUMBER/><HOUSE_NAME/><POSTCODE/><DOB/></H1GGGGSS_SPR_VERIFY_CUSTOMER_INPUT>

2013 Jan 23 09:12:04:564 IST +0 BW.TEST-2-Process_Archive Debug [BW-User] DEBUG Job-107544 [UtilityService
s/BWFLIB_Logging/BWFLIB_getLogger.process/GA_WL_LOGDEBUG]: Wed, Jan 23, 2013, 09:12:04 545[1111732318]::
SendSubject::_INBOXSystem1Adapter.Request._Null_.vCustomer.1
ReplySubject:: NULL
TrackingInfo:: System2ServicevCustomerRequest-382_1358932322623
OriginalMessage:: <?xml version="1.0" encoding="UTF-8"?>
<ns0:Response xmlns:ns0="http://www.tibco.com/xmlns/ae2xsd/2002/05/ae/System1/Response"><CUSTOMER__KEY><
number>9966993366</number><ACCOUNT__ID>9400048048</ACCOUNT__ID><CRM__ID>10000000000000052604</CRM__ID></CUSTOMER__KEY><STATU
S><STATUS__CODE>0</STATUS__CODE><ERROR__CODE/><ERROR__DESCRIPTION/></STATUS></ns0:Response>
2013 Jan 23 09:12:02:716 IST +0 BW.TEST-2-Process_Archive Debug [BW-User] DEBUG Job-107544 [UtilityService
s/BWFLIB_Logging/BWFLIB_getLogger.process/GA_WL_LOGDEBUG]: Wed, Jan 23, 2013, 09:12:02 698[1111732318]::
LogMessage::CallSYs1AndSystem2SubProcess:: CallSystem1AndSystem2SubProcess.Start.1Process Started
ProcessID:: 107544
ProjectName:: TEST-2_root
EngineName:: TEST-2-Process_Archive
RestartedFromCheckpoint:: false
TrackingInfo:: System2ServicevCustomerRequest-382_1358932322623
CustomId:: 192.168.248.250:6961937c:13a2b960ad6:-7ffd

2013 Jan 23 09:12:02:746 IST +0 BW.TEST-2-Process_Archive Debug [BW-User] DEBUG Job-107544 [UtilityService
s/BWFLIB_Logging/BWFLIB_getLogger.process/GA_WL_LOGDEBUG]: Wed, Jan 23, 2013, 09:12:02 728[1111732318]::
SendSubject::TEST.GB.COMPANY1.System1Adapter.Request._Null_.vCustomer.1
ReplySubject:: _INBOX
TrackingInfo:: System2ServicevCustomerRequest-382_1358932322623
OriginalMessage:: <?xml version="1.0" encoding="UTF-8"?>
<H1GGGGSS_SPR_VERIFY_CUSTOMER_INPUT><ser>H1GGGGSS_SPR_VERIFY_CUST_INP</ser><number>9966993366</number><ACCOUNT_ID>9400048048</ACCOUNT_ID><HOUSE_NUMBER/><HOUSE_NAME/><POSTCODE/><DOB/></H1GGGGSS_SPR_VERIFY_CUSTOMER_INPUT>

2013 Jan 23 09:12:04:564 IST +0 BW.TEST-2-Process_Archive Debug [BW-User] DEBUG Job-107567 [UtilityService
s/BWFLIB_Logging/BWFLIB_getLogger.process/GA_WL_LOGDEBUG]: Wed, Jan 23, 2013, 09:12:04 545[1111732318]::
SendSubject::_INBOXSystem1Adapter.Request._Null_.vCustomer.1
ReplySubject:: NULL
TrackingInfo:: System2ServicevCustomerRequest-382_1358932322623
OriginalMessage:: <?xml version="1.0" encoding="UTF-8"?>
<ns0:Response xmlns:ns0="http://www.tibco.com/xmlns/ae2xsd/2002/05/ae/System1/Response"><CUSTOMER__KEY><
number>9966993366</number><ACCOUNT__ID>9400048048</ACCOUNT__ID><CRM__ID>10000000000000052604</CRM__ID></CUSTOMER__KEY><STATU
S><STATUS__CODE>0</STATUS__CODE><ERROR__CODE/><ERROR__DESCRIPTION/></STATUS></ns0:Response>

In this example the result should be the below
result:
------
2013 Jan 23 09:12:02:716 IST +0 BW.TEST-2-Process_Archive Debug [BW-User] DEBUG Job-107544 [UtilityService
s/BWFLIB_Logging/BWFLIB_getLogger.process/GA_WL_LOGDEBUG]: Wed, Jan 23, 2013, 09:12:02 698[1111732318]::
LogMessage::CallSYs1AndSystem2SubProcess:: CallSystem1AndSystem2SubProcess.Start.1Process Started
ProcessID:: 107544
ProjectName:: TEST-2_root
EngineName:: TEST-2-Process_Archive
RestartedFromCheckpoint:: false
TrackingInfo:: System2ServicevCustomerRequest-382_1358932322623
CustomId:: 192.168.248.250:6961937c:13a2b960ad6:-7ffd

2013 Jan 23 09:12:02:746 IST +0 BW.TEST-2-Process_Archive Debug [BW-User] DEBUG Job-107544 [UtilityService
s/BWFLIB_Logging/BWFLIB_getLogger.process/GA_WL_LOGDEBUG]: Wed, Jan 23, 2013, 09:12:02 728[1111732318]::
SendSubject::TEST.GB.COMPANY1.System1Adapter.Request._Null_.vCustomer.1
ReplySubject:: _INBOX
TrackingInfo:: System2ServicevCustomerRequest-382_1358932322623
OriginalMessage:: <?xml version="1.0" encoding="UTF-8"?>
<H1GGGGSS_SPR_VERIFY_CUSTOMER_INPUT><ser>H1GGGGSS_SPR_VERIFY_CUST_INP</ser><number>9966993366</number><ACCOUNT_ID>9400048048</ACCOUNT_ID><HOUSE_NUMBER/><HOUSE_NAME/><POSTCODE/><DOB/></H1GGGGSS_SPR_VERIFY_CUSTOMER_INPUT>

2013 Jan 23 09:12:04:564 IST +0 BW.TEST-2-Process_Archive Debug [BW-User] DEBUG Job-107544 [UtilityService
s/BWFLIB_Logging/BWFLIB_getLogger.process/GA_WL_LOGDEBUG]: Wed, Jan 23, 2013, 09:12:04 545[1111732318]::
SendSubject::_INBOXSystem1Adapter.Request._Null_.vCustomer.1
ReplySubject:: NULL
TrackingInfo:: System2ServicevCustomerRequest-382_1358932322623
OriginalMessage:: <?xml version="1.0" encoding="UTF-8"?>
<ns0:Response xmlns:ns0="http://www.tibco.com/xmlns/ae2xsd/2002/05/ae/System1/Response"><CUSTOMER__KEY><
number>9966993366</number><ACCOUNT__ID>9400048048</ACCOUNT__ID><CRM__ID>10000000000000052604</CRM__ID></CUSTOMER__KEY><STATU
S><STATUS__CODE>0</STATUS__CODE><ERROR__CODE/><ERROR__DESCRIPTION/></STATUS></ns0:Response>
2013 Jan 23 09:12:02:716 IST +0 BW.TEST-2-Process_Archive Debug [BW-User] DEBUG Job-107544 [UtilityService
s/BWFLIB_Logging/BWFLIB_getLogger.process/GA_WL_LOGDEBUG]: Wed, Jan 23, 2013, 09:12:02 698[1111732318]::
LogMessage::CallSYs1AndSystem2SubProcess:: CallSystem1AndSystem2SubProcess.Start.1Process Started
ProcessID:: 107544
ProjectName:: TEST-2_root
EngineName:: TEST-2-Process_Archive
RestartedFromCheckpoint:: false
TrackingInfo:: System2ServicevCustomerRequest-382_1358932322623
CustomId:: 192.168.248.250:6961937c:13a2b960ad6:-7ffd

2013 Jan 23 09:12:02:746 IST +0 BW.TEST-2-Process_Archive Debug [BW-User] DEBUG Job-107544 [UtilityService
s/BWFLIB_Logging/BWFLIB_getLogger.process/GA_WL_LOGDEBUG]: Wed, Jan 23, 2013, 09:12:02 728[1111732318]::
SendSubject::TEST.GB.COMPANY1.System1Adapter.Request._Null_.vCustomer.1
ReplySubject:: _INBOX
TrackingInfo:: System2ServicevCustomerRequest-382_1358932322623
OriginalMessage:: <?xml version="1.0" encoding="UTF-8"?>
<H1GGGGSS_SPR_VERIFY_CUSTOMER_INPUT><ser>H1GGGGSS_SPR_VERIFY_CUST_INP</ser><number>9966993366</number><ACCOUNT_ID>9400048048</ACCOUNT_ID><HOUSE_NUMBER/><HOUSE_NAME/><POSTCODE/><DOB/></H1GGGGSS_SPR_VERIFY_CUSTOMER_INPUT>

9966993366
exists multiple times in the file you showed.
But always with the same Debug Job.

Strangely, that search string appear in every one of the data paragraphs.

So, confused....

Hi joeyg,

Yes..You are right..the 9966993366 comes more than once.In real time the logs are huge and it comes with different jobids as well. probably in the below example I should give the last block with different <number> value.

But here the main objective of using the value <number>9966993366</number> is to find the job-id which is "107544" and then use the jobid number to get the complete blocks from the log.

is this understandable?

Thanks and Regards,
cskumar