While in the process of cleaning up monitoring alerts I thought it would be useful to be able to:
- Version control my filters easily in a format less verbose than XML
- Create new filters easily based on templates to reuse definitions
- Generate filters automatically for the servers I look after
- Have the ability to share filters between colleagues
- Document filters in the YAML file
- Firstly create a filter template. An example is in templates/definition.tx.
- Run outputfilter.pl -c filename to generate a new populated YAML file named filename for filter creation from the template.
- Lastly outputfilter.pl -y filename will read the specified YAML file and output the Gmail filters to be imported.
Also demonstrated is a PoC self-service web site to generate filters written in Ruby using the Sinatra web framework.