Name

routeflapper.conf — configuration file for routeflapper

Synopsis

routeflapper.conf

Description

The routeflapper.conf configuration file is specified by this partial bnf description. The entire config file is case sensitive. All the keywords are lower case.

CONFIG    := {FILE}+
FILE      := "file" FILENAME "{" PATTERN+ "};"
PATTERN   := PATH | ANNOUNCE | WITHDRAW | IP
PATH      := "path" REGEX "{" INDEXPATH         '}' ";"
ANNOUNCE  := "path" REGEX "{" INDEXVAL INDEXLEN '}' ";"
WITHDRAW  := "path" REGEX "{" INDEXVAL INDEXLEN '}' ";"
IP        := "path" REGEX "{" INDEXIP           '}' ";"
INDEXPATH := "index_path"   REGEX-INTEGER-VALUE ";"
INDEXVAL  := "index_value"  REGEX-INTEGER-VALUE ";"
INDEXLEN  := "index_length" REGEX-INTEGER-VALUE ";"
INDEXIP   := "index_ip"     REGEX-INTEGER-VALUE ";"

Sample

file "/var/log/bgp" {
    path " rcvd UPDATE w.* path (([0-9]| )*[0-9])" {
        index_path 1;
    };
    announce " rcvd (([0-9]|\.)*)/([0-9]*)$" {
        index_value  1;
        index_length 3;
    };
    withdraw " rcvd UPDATE about (([0-9]|\.)*)/([0-9]*) -- withdrawn" {
        index_value  1;
        index_length 3;
    };
};

file "/var/log/maillog" {
    ip "NOQUEUE: connect from.* \[(.*)\]" {
        index_ip 1;
    };
};

Version

1.0.1