Hi all,
I have been trying to parse the a log file to plot some of the data in it. The format is something like this:
PyrateBufferManager: 2011-10-24 15:42:47.709684:
CurrentAquiredBuffers: 0
ReturnBufferCount: 11527
CurrentAquiredBytes: 0
SimDataCollectorMonitor-00A: 2011-10-24 15:42:47.709684:
SNProfile: {'SNLoop': 6133}
I was trying to use regex, but didnt get very far in making it flexible. I was recommended lepl, but that it was slow would be an understatement. What I would like to get out is a dictionary has all the information it it sorted by time stamp, i.e.
{2011-10-24 15:42:47: {"PyrateBufferManager": {"CurrentAquiredBuffers": 0, "ReturnBufferCount":11527, "CurrentAquiredBytes": 0}, "SimDataCollectorMonitor-00A":{"SNLoop":6133}, etc.}
Now I have been trying to use regex, but i cant get to be be flexible because there maybe new tags added, etc. and I dont want to add something every time that happens.
Could somebody give me some input as to how to do this.
Thanks a bunch in advance.
Cheers.