-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Filebeat (5.0.0-Alpha4 and 5.0.0-Alpha5-snapshot) and filter bug #2178
Comments
Configure relative bug? |
This bug affects the regex, contains, and equals conditions when used with Filebeat's |
andrewkroh
added a commit
to andrewkroh/beats
that referenced
this issue
Aug 9, 2016
When using any of those conditions with the `message` field in Filebeat a warning would occur and no processor would be applied. The warning message was: WARN unexpected type *string in contains condition as it accepts only strings. This occurred because Filebeat was passing the message field as a *string (string pointer). The processor code only expected to receive string values. This PR contains three changes: - Enhance the processor code to accept *string and string. - Make filebeat pass the message field as a string rather than *string. - Modify a test case to work against the message field rather than the source field. Fixes elastic#2178
I opened PR #2209 to fix this in master. That PR will need merged to the 5.0 branch too. |
ruflin
pushed a commit
that referenced
this issue
Aug 10, 2016
#2209) When using any of those conditions with the `message` field in Filebeat a warning would occur and no processor would be applied. The warning message was: WARN unexpected type *string in contains condition as it accepts only strings. This occurred because Filebeat was passing the message field as a *string (string pointer). The processor code only expected to receive string values. This PR contains three changes: - Enhance the processor code to accept *string and string. - Make filebeat pass the message field as a string rather than *string. - Modify a test case to work against the message field rather than the source field. Fixes #2178
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Initially discussed on: https://discuss.elastic.co/t/filebeat-5-0-0alpha4-and-filter/57287
Our present setup is:
We were looking into the option of filtering (dropping) un-needed event logs at the source that is using FileBeat.
Our typical Log line (celery logs) that we would like to drop look like:
The Filter in filebeat.yml (in reduced form), is
The filebeat log in debug shows:
I have tried to use various combination of "contains" condition and have found that either
OR
As suggested by @andrewkroh on the elastic discussion, the testing was done with 5.0.0-Alpha5 (snapshot build) with the suggested configuration changes
But the net results were just the same, logs containing the string "Retry" were also published
From the debug log
The text was updated successfully, but these errors were encountered: