Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new feature: adding custom tags (labels) to APM agent-forwarded logs #19262

Merged
merged 7 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: 'Add custom tags (labels) to application logs'
tags:
- Logs
- Enable log management in New Relic
- Logs in context
- Tag
- Labels
metaDescription: For apps monitored by New relic language agents, learn how to add custome tags (labels) to logs.
redirects:
- /docs/enable-logs-context
- /docs/apm/agents/net-agent/configuration/net-agent-configuration
- /docs.newrelic.com/docs/apm/agents/ruby-agent/configuration/ruby-agent-configuration/
- /docs/logs/new-relic-logs/enable-logs-context/enable-logs-context-go
freshnessValidatedDate: never
---

New Relic APM language agents now allow you to opt-in to adding your custom tags (labels) to agent-forwarded logs.
With custom tags on logs, DevOps and platform engineers can filter, search, and correlate log data for faster and more efficient troubleshooting, improved performance, and optimized resource utilization.

Check warning on line 19 in src/content/docs/logs/logs-context/custom-tags-agent-forwarder-logs.mdx

View workflow job for this annotation

GitHub Actions / vale-linter

[vale] reported by reviewdog 🐶 [new-relic.ComplexWords] Consider using 'use' instead of 'utilization'. Raw Output: {"message": "[new-relic.ComplexWords] Consider using 'use' instead of 'utilization'.", "location": {"path": "src/content/docs/logs/logs-context/custom-tags-agent-forwarder-logs.mdx", "range": {"start": {"line": 19, "column": 192}}}, "severity": "INFO"}

## Enable custom tags (labels) on application logs

When enabled, New Relic language agents add all custom tags (labels) to agent-forwarded logs.

Supported languages:

* [.NET](/docs/apm/agents/net-agent/configuration/net-agent-configuration)
* [Ruby](/docs.newrelic.com/docs/apm/agents/ruby-agent/configuration/ruby-agent-configuration/)
* Go: coming soon
* Java: coming soon
* Node.js: coming soon
* PHP: coming soon
* Python: coming soon
2 changes: 2 additions & 0 deletions src/nav/logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ pages:
path: /docs/logs/logs-context/logs-in-context
- title: APM logs in context
path: /docs/logs/logs-context/get-started-logs-context
- title: Add custom tags (labels) to application logs
path: /docs/logs/logs-context/custom-tags-agent-forwarder-logs
- title: Manage or disable APM logs
path: /docs/logs/logs-context/disable-automatic-logging
- title: "C SDK: logs in context"
Expand Down
Loading