Unable to access metadata in log data received via opentelemetry input plugin #8737
Unanswered
trondhindenes
asked this question in
Q&A
Replies: 1 comment
-
Exactly the same issue on my end. |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have an input that looks like this:
if I output to stdout, it looks like this (from a properly instrumented app):
However, if I use the "json" format in the stdout, it looks like this:
So, I'm guessing all the metadata for the log event gets truncated somehow, or not shown if outputting as json.
My problem is, I need that data to be sent to the actual logging system I want to use (loki). I've also tried accessing the metadata like so, using a filter:
However,
otelServiceName
is not resolved even tho it exists in the metadata.I'm struggling to get this work, and I cannot find any documentation around accessing event metadata.
Should what I'm trying to do work?
Beta Was this translation helpful? Give feedback.
All reactions