Cloning and timeline browsing: this project is on ChiselApp: chiselapp.com/user/kiatoa

Changes to "LogProcessor" between 2013-09-03 16:40:37 and 2013-09-03 16:46:48

︙
41
42
43
44
45
46
47


48
49





50






51
52
53
54
55
56
57
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

57
58
59
60
61
62
63
64
65
66
67
68
69







+
+


+
+
+
+
+
-
+
+
+
+
+
+








<h3>Command file details</h3>
Your command file is written in scheme but don't let that scare you. Only a handful of single line stanzas are needed to write a rock solid log analyzer. Here is an [example command file] and the [logpro output] from running against this [example log file]

More examples can be seen in the example.logpro file in the source directory [http://www.kiatoa.com/fossils/logpro/doc/tip/example.logpro]

<h3>Syntax</h3>

Triggers:
<verbatim>
( trigger "trigger name" #/trigger pattern/ )
</verbatim>
  #  The "trigger name" can be any string
  #  The trigger pattern is a perl compatible regular expression
Sections:
<verbatim>
( section "start trigger" "end trigger" )
( section "section name" "start trigger" "end trigger" )
</verbatim>
  #  The "section name" is a string.
  #  The "start trigger" and "end trigger" are strings that match the name of a trigger
Expect rules:
<verbatim>
( expect [in|not-in] "section name" [> or < or =] integer  #/regular expression/ )
</verbatim>

<h3>Sections</h3>
You can break your log file into sections to make applying the rules very specific. For example you may want to only apply a set of rules in the compile section of the log file related to compiler failures.

Example: Create a section called "Init" that only applies between a line containing the string "This is a header" and a blank line. The lines match on regular expressions delimited by #/ and /.
︙