Openetelemtry output: composes a "structured" body, but not creates attributes instead - is that correct (and is there a way to change it)? #6706
Unanswered
dsobolev-nr
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Are you parsing the input from the The default behaviour of You can probably see this with |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there.
I guess this is expected behavior, I just wonder if there is any way to change it.
So we have an example log record:
Jan 18 18:45:31 ip-10-0-3-0 newrelic-infra-service: time="2023-01-18T18:45:31Z" level=error msg="Error occurred while handling the process" component=integrations.Supervisor error="signal: aborted" process=log-forwarder
and the following opentelemtry payload shows up:
{"resourceLogs":[{"resource":{},"scopeLogs":[{"scope":{},"logRecords":[{"timeUnixNano":"1674067533806629601","body":{"kvlistValue":{"values":[{"key":"filePath","value":{"stringValue":"/var/log/messages"}},{"key":"log","value":{"stringValue":"Jan 18 18:45:31 ip-10-0-3-0 newrelic-infra-service: time=\"2023-01-18T18:45:31Z\" level=error msg=\"Error occurred while handling the process\" component=integrations.Supervisor error=\"signal: aborted\" process=log-forwarder"}},{"key":"fb.input","value":{"stringValue":"tail"}},
So all attributes (appeared after parsing) go to the body, while I would expect them to be added as attributes to logRecords.
Is there any way to achieve this?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions