Combined with New Relic Logs, logs-in-context for the .NET agent connects your Logs and APM data in New Relic, giving full context to high-level events and providing high value data to specific log lines. This document explains how to enable this feature and get started using it.
New Relic's logs-in-context (linking logs directly to Applications, APM errors, and APM traces and spans) for New Relic Logs is currently available as a beta feature. Your use of the early access service is at your own risk. New Relic disclaims all warranties, express or implied, regarding the beta services.
Compatibility and requirements
To use New Relic Logs with the .NET agent, ensure your configuration meets the following requirements:
- New Relic Logs enabled, with a compatible log forwarder installed
- New Relic .NET Agent 8.21+
- New Relic .NET Agent API 8.21+
- Microsoft .NET Framework 4.5+ or .NET Core 2.0+
- Distributed tracing enabled
Enable logs-in-context for .NET
Choose a extension to see specific instructions:
- log4net (coming soon)
- NLog (coming soon)
Now that you've enabled logs-in-context, here are some potential next steps:
- Explore your data using the Logs UI.
- Troubleshoot errors with distributed tracing, stack traces, application logs, and more.
- Query your data in Insights and create custom dashboards, charts, or alerts.