Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore parsing exceptions #1892

Closed
jvaesteves opened this issue Feb 26, 2021 · 2 comments
Closed

Ignore parsing exceptions #1892

jvaesteves opened this issue Feb 26, 2021 · 2 comments

Comments

@jvaesteves
Copy link

Hello everyone, I want to configure a Secor instance to ignore a message if it would throw a exception (for example, if the timestamp column does not follow the expected input pattern, or if any other field does not match the expected schema), instead of just crashing the application. Does Secor have a property that allows this behavior? I have searched the properties files, but did not found anything similar to this.

@pdambrauskas
Copy link
Contributor

I think it was fixed with #1547

You can configure how many bad records can be tolerated by setting secor.consumer.max_bad_messages property.

But this feature is not released yet, you should probably build from master.

@jvaesteves
Copy link
Author

Thanks, this is working perfectly as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants