in reply to Multiline log parsing
If I was doing this, I'd write a state machine to help me parse the file. I'd use regexen to match the relevant lines and extract information out of them. Based on the limited info you provided, I'd use states like "StartAction", "StartSubtask", "SubtaskOptions", "Job", "EndSubtask", "EndAction", etc.
Unless you set out to create a parseable grammar, you might run into problems but since you have control over the grammar as well as the parser you should be able to fiddle with things and make them work.
-sauoq "My two cents aren't worth a dime.";
|
|---|