I use this command:
How can I programmatically analyze this log?
Example of log:
How we can see, there is an error. Some files is missing.
I need programmatically to analyze the file, and if any skipped files or other troubles, then to find out.
I have developed the following algorithm:
The first line must be the word Summary. If it is not passed in the negative analysis.
Check whether there is a separator: ------------------------------------------------------------------------------------------ If it is not passed in the negative analysis.
Performs an analysis of each line between the summary and the separator. As follows: split a string by the symbol tab, if the last element of the word Skipped, then the negative analysis.
If the analysis does not work is not one of the the negative conditions of the analysis, then the analysis went positive.
Questions:
What do you think of this algorithm for analysis of the log file?
Maybe I'm missing something? Maybe except for skipped files there exceptions?