Variable length log

I would use ruby and a .scan function. See here for an example.