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

Add support to tag events when parse_json fails to parse #2744

Closed
kkondaka opened this issue May 24, 2023 · 0 comments · Fixed by #2745
Closed

Add support to tag events when parse_json fails to parse #2744

kkondaka opened this issue May 24, 2023 · 0 comments · Fixed by #2745
Assignees

Comments

@kkondaka
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Add support to tag events when parse_json fails to parse. This is sub-issue of issue #629.

Describe the solution you'd like
Solution is to add option to parse_json processor that can add tags on failure. The proposed config is

processor:                                                                                                                                              
     - parse_json:                                                                                                                                        
          source: "log"                                                                                                                                     
          tags_on_failure: ["json_parse_fail", "tag2"]    

This config would add the specified tags to the event upon parse failure.

Describe alternatives you've considered (Optional)
A clear and concise description of any alternative solutions or features you've considered.

Additional context
The added tags may be used to in the pipeline to do conditional routing or conditional processing.

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

Successfully merging a pull request may close this issue.

1 participant