Part of logsparser.normalizer View In Hierarchy
Method | __init__ | initializes the normalizer with an lxml ElementTree. |
Method | get_description | Undocumented |
Method | get_long_description | Undocumented |
Method | get_uncompiled_regexp | returns the uncompiled regular expression associated to pattern named p. |
Method | normalize | normalization in standalone mode. |
Method | validate | if the definition file comes with pattern examples, this method can |
Method | get_source | gets the raw XML source for this normalizer. |
Method | get_languages | guesstimates the available languages from the description field and |
Method | __parse_patterns | Undocumented |
Parameters | xmlconf | lxml ElementTree normalizer definition |
genericTagTypes | path to generic tags definition xml file |
Returns | regexp, dictionary of tag names <-> tag codes, dictionary of tags codes <-> pattern the tag came from, new increment value |
Parameters | log | a dictionary or an object providing at least a get() method |
do_not_check_prereq | if set to True, the prerequisite tags check is skipped (debug purpose only) | |
Returns | a dictionary with updated tags if normalization was successful. |
Returns | True if the normalizer is validated, raises a ValueError describing the problem otherwise. |