-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 ability to filter log records by body (maybe expr language) #5679
Comments
It's a little bit related to that #4955 Today we can't work on body assuming it's a randomly structured or not data. But because attributes vs body usages are not always clear or respected we should at least have a way to work on it (or prevent bad usage in all receivers) |
In #5680 I use stringified body. I believe it's good starting point in terms of filtering. Also expr can be extended in the future to support structured body. This is very unfortunate that there is no way to operate on Body right now |
Is there any work happening w.r.t to this issue? Will changes in https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/transformprocessor be affecting https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/internal/coreinternal/processor/filterlog or other packages from Just to have a full picture here: this is doable in cc: @djaglowski |
I haven't found enough time to become very familiar with how we're approaching filtering in processors yet, but I'll point out a couple things that may help narrow the scope of what we need to support:
|
Pinging code owners: @TylerHelmuth @kentquirk @bogdandrutu @evan-bradley. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I am currently working on an enhancement to the transform processor that will enable use to write a |
Is your feature request related to a problem? Please describe.
I want to filter in/out logs by specific body content
Describe the solution you'd like
I can see two solutions. All of them should be implemented in filterprocessor
Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: