-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
otel transform processor #36980
Comments
You're going to need to provide a reproducible test case. But I'd wager something else is going on here. I think you have multiple logs under your resource. If at least one log matches, your resource is transformed, so even if logs don't match, their resource is still modified all the same. |
{ |
this is my collector logs, there are only body field of log_record, no others, and it's string type |
i want to use resource.attributes["filter"] as the first condition, when it meets, and is waf key words condition, then to set resource attributes |
Pinging code owners for processor/transform: @TylerHelmuth @kentquirk @bogdandrutu @evan-bradley. See Adding Labels via Comments if you do not have permissions to add labels yourself. For example, comment '/label priority:p2 -needs-triaged' to set the priority and remove the needs-triaged label. |
Component(s)
No response
Describe the issue you're reporting
my logic:
as my understanding, the conditions and the where clause are 'and' relationship, but some logs not meet Substring(body,20,3) == "waf", and only meet resource.attributes["filter"] == "dcdn" , the set was executed.
The text was updated successfully, but these errors were encountered: