Beispiel #1
0
    def _config_match(self, elem):
        type = elem["type"]
        pattern = elem.arg
        if not type:
            raise ConfigError("Missing 'type' parameter on <match %s> directive", pattern)
        log.info("adding match %r => %r", pattern, type)

        out = Plugin.new_output(type)
        out.configure(elem)
        match = Match(pattern, out)
        self._matches.append(match)
Beispiel #2
0
    def _config_match(self, elem):
        type = elem['type']
        pattern = elem.arg
        if not type:
            raise ConfigError(
                "Missing 'type' parameter on <match %s> directive", pattern)
        log.info("adding match %r => %r", pattern, type)

        out = Plugin.new_output(type)
        out.configure(elem)
        match = Match(pattern, out)
        self._matches.append(match)
Beispiel #3
0
    def configure(self, conf):
        for e in conf.elements:
            if e.name != "store":
                continue
            type_ = e.get('type')
            if type_ is None:
                raise error.ConfigError("Missing 'type' parameter on <store> directive")
            log.debug("adding store type=%r", type_)

            output = Plugin.new_output(type_)
            output.configure(e)
            self._outputs.append(output)
Beispiel #4
0
    def configure(self, conf):
        for e in conf.elements:
            if e.name != "store":
                continue
            type_ = e.get('type')
            if type_ is None:
                raise error.ConfigError(
                    "Missing 'type' parameter on <store> directive")
            log.debug("adding store type=%r", type_)

            output = Plugin.new_output(type_)
            output.configure(e)
            self._outputs.append(output)