question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Docs] Serilog/NLog links point to 404 pages

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gregkalaposcommented, Dec 20, 2019

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 .

0reactions
bmorelli25commented, Dec 20, 2019

Ahh, that makes sense!

If you spot anything else that looks amiss, don’t hesitate to let us know 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Serilog file logging not written from Worker Service when ...
I am writing a worker service that needs to use Serilog and write to a log file. (.net core 6 and Windows service)....
Read more >
serilog/serilog: Simple .NET logging with fully-structured ...
Back-ends that are capable of recording structured event data make log searches and analysis possible without log parsing or regular expressions. Supporting ...
Read more >
Serilog in ASP.NET Core 3.1 - Structured Logging Made ...
For this demonstration, let's implement Serilog on an ASP.NET Core 3.1 WebApplication (Razor Pages). Since our focus is on logging and understanding various ......
Read more >
Setting up Serilog in ASP.NET Core - Detailed Beginner ...
This article covers the implementation of Serilog in ASP.NET Core which provides structured logging that is easier to be read by programs.
Read more >
Setting up Serilog in ASP.NET Core 3
Serilog is an alternative logging implementation that plugs into ASP. ... project is a useful starting point, with links to wiki pages, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found