Replies: 1 comment 4 replies
-
Hi @julealgon ! Gotcha, yeah I see that Someone in the linked issue seems to have taken the tact of, rather than running the OpenTelemetry collector at all, just having the applications write OpenTelemetry formatted logs to stdout/stderr and have the Datadog Agent collect those. Vector could help here. It is capable of splitting up the logs into multiple via the We also expect to release OpenTelemetry log support for Vector this quarter so another option would be to wait for that, depending on the urgency. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
I'm using the Datadog Agent as an intermediate to push logs written in OTEL Protocol format to Datadog. This is a workaround to the problem described here:
This is the configuration I'm using in the DD Agent right now:
And this is my OTEL collector setup:
After configuring my OTEL Collector to output logs to a local file, then installing DD agent in the same server and pulling logs from that file, I was able to see log entries flowing through to Datadog, however they are "posted as-is": meaning all I see are raw JSON batches of OTEL-formatted json logs, and not the actual log entries themselves:
Each "entry" above is actually a 5 second OTEL batch of logs each containing several log entries inside.
I was expecting Datadog to be "smart enough" to recognize that the data being pushed is OTEL Protocol logs data and properly parse the json and create all the necessary individual log events with their specific services, messages, etc.
Am I missing something? Both in the original issue above, as well as in this other question:
I was led to believe that it was possible to use the DD agent to overcome the current lack of a proper OTEL log exporter in the OpenTelemetry Collector, but if all it can do right now is post the raw batch json objects, then that's a fairly poor integration in my opinion and will make finding log entries later a nightmare.
Is there a way to set this up so that actual log entries are posted instead of the raw batch Json? Maybe something I can do either in the DD agent setup, or a Datadog ingestion pipeline to properly "parse" the OTEL Json object an split it into the actual log events, or even a configuration I could do in the collector itself that would allow for this?
@binarylogic and @jszwedko if you can help with this it would be much appreciated. Let me know if switching to Vector would be the sensible option here as well (assuming Vector can resolve this issue)
Beta Was this translation helpful? Give feedback.
All reactions