CommunityDesign/event-handler

Background
Currently the software allows to monitor log events, but not to take actions based on those events automatically. The idea is to let the user do so.

Requirements
The service will parse syslog output or other text feed, check lines against a user defined regular expression and execute scripts mapped to corresponding expressions.

Feeds can be predefined or custom. Custom feeds may be identified with a FIFO file path or a command to execute.

Frontend
Front-end CLI syntax: system event-handler policy event pattern # Perl compatible regular expression run # Path to an executable feed source preset  custom named-pipe # Path to a named pipe file command # Path to an executable policy

Backend
Event handling backend will be a daemon that runs a thread per feed.

Sample config file:

 ^.*$        /config/scripts/whatever 