May-25-2020, 08:55 PM
Hi, I'm noob in python.
How can i parse a log file to JSON.
From this:
To this:
and so on.
Many thanks.
How can i parse a log file to JSON.
From this:
Quote: -----------------------------------
Uncollected accounts
-----------------------------------
.
Date debut
16/04/20 22:41:22
PL/SQL procedure successfully completed.
Date end
16/04/20 22:41:39
.
-----------------------------------
Control figures
-----------------------------------
.
Date debut
16/04/20 22:41:23
Date fin
16/04/20 22:41:48
.
----------------------------
End of Daily Treatments
----------------------------
.
Date end
16/04/20 22:41:49
To this:
Quote: ['process', 'date debut', 'date end', 'hour start', 'hour end']
['Uncollected accounts', '16/04/20', '16/04/20', '22:41:22', '22:41:39']
and so on.
Many thanks.