-
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
OTTL doesn't support log body being anything other than a string #17396
Comments
Pinging code owners for processor/filter: @TylerHelmuth @boostchicken. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@Mrod1598 OTTL doesn't support indexing on the body field so Also your syntax for At the moment ottllogs returns the body as whatever If you do need to get access to a |
This suggests that the body is not already parsed, in which case I agree OTTL should treat it as a string (because it is a string). However, the body can and often is actually structured (i.e. |
@djaglowski we could add indexing for the body path, erroring if body is returned as anything but a pcommon.Map. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Related to #20754. Once we have complex indexing for paths and converters we could add the capability to |
Component(s)
No response
What happened?
Description
When using the filter processor and trying to point at a map key in body to execute a regex match, it doesn't work.
Steps to Reproduce
Attempt to filter on body that has a multiple keys
Expected Result
To be able to index body as a map like attributes
Solution
I believe the fix would be duplicating the logic for attributes for body here.
Collector version
v0.68.0
The text was updated successfully, but these errors were encountered: