]> git.ipfire.org Git - people/stevee/guardian.git/commit - guardian
Allow to configure the used parser for a monitored file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 22 Jan 2016 12:26:55 +0000 (13:26 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 22 Jan 2016 12:26:55 +0000 (13:26 +0100)
commitcfe5a22044951bb6046b1580bed45b85cc9a4dad
tree55ea6492f8f04c361384c6d6ab019bb416934ce5
parente9c558fec0c7abed46ea56d712686af37b735b12
Allow to configure the used parser for a monitored file.

This commit adds support to assign the used parser for a
configured monitored file. The information which parser
should be used directly will be obtained from the
configuration option.

For example "Monitor_Snort = /path/to/snort/alert/file" will
monitor the specified file as before, but will try to use
the parser called "snort" (parsers internal completely are handled
in lower case format) to parser any messages which are written to
that file.

This will remove the static filename <-> parser structure, which will
allow a better implementation of parsers or customized parsers in the
future and a better portability to other systems.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
guardian
modules/Base.pm
modules/Parser.pm