Skip to content

Option skip_invalid not working for schema validation #1333

Closed Locked Answered by nsano-rururu
missaeldenadai asked this question in Q&A
Discussion options

You must be logged in to vote

https://github.com/jertel/elastalert2/blob/master/elastalert/loaders.py#L233

current

        rule = self.load_yaml(filename)

fix

        try:
            rule = self.load_yaml(filename)
        except Exception as e:
            if (conf.get('skip_invalid')):
                logging.error(e)
                return False
            else:
                raise e

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@jertel
Comment options

@nsano-rururu
Comment options

@nsano-rururu
Comment options

@nsano-rururu
Comment options

Answer selected by jertel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
3 participants