OpenTelemetry log exporter and ElasticSearch APM 8+ #3249
-
Hi I am just trying to see if I can get logs into Elastic Stack. It seems that since ES version 8 it is supported with the unstable data model for now. (I am on ES 8.1) Tracking this is seems like there should be some very basic stuff coming though by now I am looking at this example https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/examples/Console/TestLogs.cs and it seems to use a local collector but I do not see where the URI is being configured? Is the default just localhost:4318 or something as per the docker instructions? Just curios because I am setting my own endpoint and not sure what the default value would be?? if any So for my logging configuration I am using as below and I don't think I need to explicitly specify GRPC (but that is the only protocol Elastics supports for now) neither the simple exporter? Sadly I do not see anything show up in Elastic streams and by the looks of #2482 there should be some basic data coming through Using OpenTelemetry.Exporter.OpenTelemetryProtocol.Logs 1.0.0-rc9.2 (lowest to match) Unless I need to bump up to Otel 1.3.0 and logs-rc9.3? (I tried but because some of our stuff still used 4.7.2 I cant bump up other dependencies without a massive fallout)
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
Please take the newest version from myget - https://github.com/open-telemetry/opentelemetry-dotnet#release-schedule Or please collect sdk logs https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/src/OpenTelemetry#self-diagnostics that can tell if something is wrong within the sdk/exporter. |
Beta Was this translation helpful? Give feedback.
-
I just got everything being sent to Elasticsearch 8.2 using otel collector and the ES apm server. It was a huge PITA to get it all working. You can view my setup in this branch: https://github.com/exceptionless/Exceptionless/tree/feature/elastic8x Docker compose to run ES 8.x, Kibana and APM server all talking to each other with SSL turned on because it's required for APM server. Otel collector config for collecting and forwarding to APM server: Ideally, we should be able to send directly to the APM Server and not have to run an otel collector instance, but I wasn't able to get it working. My .NET configuration code to collect traces, metrics and logs from my app: |
Beta Was this translation helpful? Give feedback.
Please take the newest version from myget - https://github.com/open-telemetry/opentelemetry-dotnet#release-schedule
(as some of the OTLPLogExporter fixes are very new and hasn't released to nuget yet).
Or please collect sdk logs https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/src/OpenTelemetry#self-diagnostics that can tell if something is wrong within the sdk/exporter.