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

Log a debug message when parsing fails. #119

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jordansissel
Copy link
Contributor

This restores some behavior that was mistakenly removed in v3.0.0
(compared to v2.x) of this plugin.

The previous behavior (v2.x) would log a warning when all matches
failed.

This patch brings this behavior back with some slight modifications:

  1. It does not use structured logging (because we don't have a simple
    way to do this in log4j2 yet, as compared to our ruby logging style)
  2. It logs at debug level. In 2.x, it logged at warning.
  3. All parse failures are logged. In 2.x, only the last match-failure
    was logged.

Thanks for contributing to Logstash! If you haven't already signed our CLA, here's a handy link: https://www.elastic.co/contributor-agreement/

This restores some behavior that was mistakenly removed in v3.0.0
(compared to v2.x) of this plugin.

The previous behavior (v2.x) would log a *warning* when all matches
failed.

This patch brings this behavior back with some slight modifications:

1) It does not use structured logging (because we don't have a simple
   way to do this in log4j2 yet, as compared to our ruby logging style)
2) It logs at debug level. In 2.x, it logged at warning.
3) All parse failures are logged. In 2.x, only the last match-failure
   was logged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants