Logs snippet below: ==========LOGS==============
a:CPU [ 85%]: asdf asd 123 xyz A: Ts 23086, Netvalue 3286, someothervalues 3456 abc abc xyz xyz a:CPU [ 75%]: asdf asd 123 xyz A: Ts 24088, Netvalue 3266, someothervalues 6576 ======End of Logs ===========
Will your logs always have a: A: on the lines that your relevant information is on?
If so you could do something like this:
fh = open('my_log.inf')
flines = fh.readlines()
fh.close()
for line in flines:
if line[:2\] == 'a:'
#get CPU
# etc... Do you understand what I'm saying? But the important question is, is this the consisent pattern in your source data? Once you hammer that out this will be a simple task.