Tuple Created OrderEntry|66|39.0|ADML.L|16.89|GBP||GFD|000002889 41ORLO1|GB00B02J6398|80|XLON|UHORIZON|null|2011-05-09 17:14:59.241+0000|UHORIZON||null|LIM|null|1
Tuple Created OrderEntry|83|10.0|ISA.L|6.355|GBP||GFD|0000028894 3ORLO1|GB00B09LSH68|80|XLON|UHORIZON|null|2011-05-09 17:29:53.339+0000|UHORIZON||null|LIM|null|1
Given requirement does not look precise. If you just need last updated date then use tail command along with sed command. The below would fetch all the available date and time patterns from your log file assign it to the respective variables..
we all missing a point here, if the file is continuously updated then there is no guarantee that the last record will be full (with all fields of our assumption) it may contain just one char or few chars.
So we need make check that the last record is full by checking the number of fields. If it is full then take necessary date and time.
Its the same sed as in post# 4 except, the highlighted ones. If you need the output in a single command then you would need to resort to awk solutions..
sed -n 's/.*|\([0-9-]*\) .*/Date:\1/p' inputfile | uniq
sed -n 's/.*|[^|]* \([0-9:]*\).*/\1/p' inputfile