If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

There are a couple of ways you could handle this. Honestly I feel like changing how the log is actually saved would be the best way, but of course that depends on if you are even able to change how the log gets saved. If you can, you would want to structure the data like a JSON object which could be easily parsed in javascript and instantly converted to a useable JSON object. If not, you'll have to convert it yourself.

My code here could be tweaked a little bit, but hopefully it will help you understand exactly how this works.
It's designed to read through your log file (like you already had) and add each property (eg. ip, sv, ai, rv) and its value to a JSON structured object.