[Docs] Serilog/NLog links point to 404 pages
See original GitHub issueDescribe the bug
This page describes that I can use Elastic.Apm.SerilogEnricher
and Elastic.CommonSchema.Serilog
to enrich my logs etc. however, the links like shown in the quotes below leads 404 page on nuget. It’s the same for the link to Elastic.Apm.NLog
Serilog
We offer a Serilog Enricher that adds the trace id to every log line that is created during an active trace. The enricher lives in the Elastic.Apm.SerilogEnricher NuGet package.
If you want to send your logs directly to Elasticsearch you can use the Serilog.Sinks.ElasticSearch package. Furthermore, you can pass the
EcsTextFormatter
from the Elastic.CommonSchema.Serilog package to the Elasticsearch sink, which formats all your logs according to Elastic Common Schema (ECS) and it makes sure that the trace id ends up in the correct field.
NLog
For NLog, we offer two LayoutRenderers that inject the current trace and transaction id into logs.
In order to use them, you need to add the Elastic.Apm.NLog NuGet package to your application and load it in the <extensions> section of your NLog config file:
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top GitHub Comments
The one small bug that probably broke this experience is that the .NET log correlation docs on GitHub pointed to the Java Agent docs 😇
Fixed in https://github.com/elastic/apm-agent-dotnet/pull/669 .
Ahh, that makes sense!
If you spot anything else that looks amiss, don’t hesitate to let us know 😄