Hi All,
I have three fields error, Bandwidth & ID. error & Bandwidth are fields for two different events while both the events have same or different ID field. I want to append error with Bandwidth, something like error:Bandwidth only for those events which have same ID field. How will i do it without using join or append command?
Below is a sample of the two events:
<RECORD><DATE>2015-09-21 07:19:37.865</DATE><LEVEL>INFO</LEVEL><SEVERITY></SEVERITY><CLASS>com.bt.vosp.webendpoint.impl.processor.MPlayCFIService</CLASS><METHOD>requestToPlayJSON</METHOD><FILE>MPlayCFIService.java</FILE><LINE>440</LINE><CORRELATIONID>1442816367016:prod-trusted/28574451_42274</CORRELATIONID><TEXT>RequestToPlay Response :{"RequestToPlayResponse":{"errorCode":"0","errorMessage":"Success","ContentInformationObjectResponse":[{"ContentLicenseResponse":{},"ContentURL":"http:\/\/csp1-1.cdd.bt.net\/content\/enc_BBJ877667A_CAR.wmv?SIGV=2&IS=0&ET=1442902777&CIP=81.151.236.213&KO=1&KN=1&US=296d49cd5782d1cca21d832011cecb533f70282e","ReleasePID":"_5E_7oFAqz7_","ReleaseID":"http:\/\/bt.data.media.theplatform.eu\/media\/data\/Release\/17686597485","IsMediaDRMProtected":"true","FileSize":"6871900","Duration":"32080","SlotType":"Trailer"}],"cid":"1442816367016:prod-trusted\/28574451_42274"}}</TEXT></RECORD>
<RECORD><DATE>2015-09-21 07:19:37.818</DATE><LEVEL>INFO</LEVEL><SEVERITY></SEVERITY><CLASS>com.bt.vosp.daa.storefront.impl.helper.PortalHttpServerHelper</CLASS><METHOD>readXml</METHOD><FILE>PortalHttpServerHelper.java</FILE><LINE>91</LINE><CORRELATIONID>1442816367016:prod-trusted/28574451_42274</CORRELATIONID><TEXT>Response Code from Apache Server:: 200 - Response Message from Apache Server :: <asset targetBandwidth="SD" LinkedTitleID="" TitleID="877667" xmlSource="TV_BT_Scheduled" schedulerChannel="TV" subGenre="" subtitles="" keywords="" productOfferingType="Promotion" type="Promotion" External_CP_ID="" ClassicAssetId="BBJ877667A" CountryOfOrigin="" category_id="TV" hd="0" duration="PT00H00M32S" rating="U" language="English" genre="All" availability="2015-09-16T00:00:00~2015-09-28T23:59:00" ClientAssetId="BBJ877667A" id="17686597339"> <TOV artist="" music="0" episodeNumber="" episodeTitle="" seriesNumber="" seriesTitle="" year="0" synopsis="It's time to Man Up on BT with some testosterone filled shows that require more than a little stiff upper lip.From mountain summits with Bear Grylls to icy Norwegian highways to deep undercover work in notorious biker gangs, you'd better strap in because things are about to get rough. Running Wild With Bear Grylls. Ice Road Rescue. Gangland Undercover" title="Man Up" id=""/> <subscription scode="S0115263"/> <media> <release targetBandwidth="SD" aspectratio="16:9" encodingformat="WM" dur="PT0H00M32.080S" scheme="wmDrm" protected="1" updated="2015-09-14T03:48:56" filename="http://csp1-1.cdd.bt.net/content/enc_BBJ877667A_CAR.wmv" filesize="6871900" exclude="0" HD="0" service="CAR" serviceFormat="Cardinal-SD" releaseid="http://bt.data.media.theplatform.eu/media/data/Release/17686597485" PID="_5E_7oFAqz7_"> <subtitle path="" track="" lang=""/> <audio type="" purpose="" track="" mix="" lang=""/> </release> <release targetBandwidth="SD" aspectratio="16:9" encodingformat="MPEG" dur="PT0H00M32.844S" scheme="marlin" protected="1" updated="2015-09-14T03:46:49" filename="http://csp1-1.cdd.bt.net/content/enc_BBJ877667A_YOU.bbts" filesize="5607476" exclude="0" HD="0" service="YOU" serviceFormat="Youview-SD" releaseid="http://bt.data.media.theplatform.eu/media/data/Release/17687621034" PID="amz0IIIKOE_o"> <subtitle path="" track="" lang=""/> <audio type="" purpose="" track="" mix="" lang=""/> </release> </media> <contentProvider name="BT Vision PVODS" id="BTV"/></asset></TEXT></RECORD>
Here if you can see both the events have CORRELATIONID field. I want to append "errorCode" value in 1st event with "targetBandwidth" value from asset tag in 2nd event like "errorCode:targetBandwidth" if both the events have matching CORRELATIONID fields without using join or append command. e.g. "0:SD". can it be done?
... View more