From b997b635fb55089ad2b18c6f157aa8b39e7ad22b Mon Sep 17 00:00:00 2001 From: Tcohn1 <71724216+Tcohn1@users.noreply.github.com> Date: Mon, 11 Nov 2024 14:04:05 +0100 Subject: [PATCH 1/7] Create APM-logs-custom-tags this is a new feature that allows users to add custom tags(labels) to each individual log event as attributes. For more context see: https://newrelic.atlassian.net/wiki/spaces/~712020468958465767472dae555831f9e3cc31/pages/3678240795/APM+Agent+Logging+Include+APM+Custom+Tags+in+Logs+For+Better+Insights --- .../logs/logs-context/APM-logs-custom-tags | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/content/docs/logs/logs-context/APM-logs-custom-tags diff --git a/src/content/docs/logs/logs-context/APM-logs-custom-tags b/src/content/docs/logs/logs-context/APM-logs-custom-tags new file mode 100644 index 00000000000..0f55a01ec36 --- /dev/null +++ b/src/content/docs/logs/logs-context/APM-logs-custom-tags @@ -0,0 +1,34 @@ +--- +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 easily filter, search, and correlate log data for faster and more efficient troubleshooting, improved performance, and optimized resource utilization. + +## Enable custom tags (labels) on application logs + +When enabled, New Relic language agents will add all custom tags (labels) to agent-forwarded logs. + +Enable custom tags is supprted on: +* [.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 + + From 1b2239f2ce924e8dcffc8014aca8ad61da8c5736 Mon Sep 17 00:00:00 2001 From: Tcohn1 <71724216+Tcohn1@users.noreply.github.com> Date: Mon, 11 Nov 2024 14:21:21 +0100 Subject: [PATCH 2/7] Create Custom-tags-agent-forwarder-logs this is a new feature that allows users to add custom tags(labels) to each individual log event as attributes. For more context see: https://newrelic.atlassian.net/wiki/spaces/~712020468958465767472dae555831f9e3cc31/pages/3678240795/APM+Agent+Logging+Include+APM+Custom+Tags+in+Logs+For+Better+Insights --- .../Custom-tags-agent-forwarder-logs | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/content/docs/logs/logs-context/Custom-tags-agent-forwarder-logs diff --git a/src/content/docs/logs/logs-context/Custom-tags-agent-forwarder-logs b/src/content/docs/logs/logs-context/Custom-tags-agent-forwarder-logs new file mode 100644 index 00000000000..cea3a38f4b6 --- /dev/null +++ b/src/content/docs/logs/logs-context/Custom-tags-agent-forwarder-logs @@ -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 easily filter, search, and correlate log data for faster and more efficient troubleshooting, improved performance, and optimized resource utilization. + +## Enable custom tags (labels) on application logs + +When enabled, New Relic language agents will add all custom tags (labels) to agent-forwarded logs. + +Enable custom tags is supported on: +* [.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 From bfdd246a9c6cfb5d78271615fbed9942dac1e998 Mon Sep 17 00:00:00 2001 From: Rob Siebens Date: Mon, 11 Nov 2024 16:15:50 -0800 Subject: [PATCH 3/7] fix(logs): Make initial edits --- .../logs/logs-context/APM-logs-custom-tags | 34 ------------------- .../Custom-tags-agent-forwarder-logs | 33 ------------------ .../logs-context/custom-tags-for-apm-logs.mdx | 24 +++++++++++++ 3 files changed, 24 insertions(+), 67 deletions(-) delete mode 100644 src/content/docs/logs/logs-context/APM-logs-custom-tags delete mode 100644 src/content/docs/logs/logs-context/Custom-tags-agent-forwarder-logs create mode 100644 src/content/docs/logs/logs-context/custom-tags-for-apm-logs.mdx diff --git a/src/content/docs/logs/logs-context/APM-logs-custom-tags b/src/content/docs/logs/logs-context/APM-logs-custom-tags deleted file mode 100644 index 0f55a01ec36..00000000000 --- a/src/content/docs/logs/logs-context/APM-logs-custom-tags +++ /dev/null @@ -1,34 +0,0 @@ ---- -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 easily filter, search, and correlate log data for faster and more efficient troubleshooting, improved performance, and optimized resource utilization. - -## Enable custom tags (labels) on application logs - -When enabled, New Relic language agents will add all custom tags (labels) to agent-forwarded logs. - -Enable custom tags is supprted on: -* [.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 - - diff --git a/src/content/docs/logs/logs-context/Custom-tags-agent-forwarder-logs b/src/content/docs/logs/logs-context/Custom-tags-agent-forwarder-logs deleted file mode 100644 index cea3a38f4b6..00000000000 --- a/src/content/docs/logs/logs-context/Custom-tags-agent-forwarder-logs +++ /dev/null @@ -1,33 +0,0 @@ - ---- -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 easily filter, search, and correlate log data for faster and more efficient troubleshooting, improved performance, and optimized resource utilization. - -## Enable custom tags (labels) on application logs - -When enabled, New Relic language agents will add all custom tags (labels) to agent-forwarded logs. - -Enable custom tags is supported on: -* [.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 diff --git a/src/content/docs/logs/logs-context/custom-tags-for-apm-logs.mdx b/src/content/docs/logs/logs-context/custom-tags-for-apm-logs.mdx new file mode 100644 index 00000000000..ea132d84254 --- /dev/null +++ b/src/content/docs/logs/logs-context/custom-tags-for-apm-logs.mdx @@ -0,0 +1,24 @@ +--- +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. +freshnessValidatedDate: 2024-11-12 +--- + +Certain New Relic APM language agents allow you to opt-in to add your custom tags (labels) to agent-forwarded logs. +With custom tags on logs, DevOps and platform engineers can easily filter, search, and correlate log data for faster and more efficient troubleshooting, improved performance, and optimized resource utilization. + +## Enable custom tags (labels) on application logs + +When you've enable custom tags, these New Relic language agents will add all custom tags (labels) to agent-forwarded logs: + +* [.NET](/docs/apm/agents/net-agent/configuration/net-agent-configuration) +* [Ruby](/docs/apm/agents/ruby-agent/configuration/ruby-agent-configuration/) + + + From 2f4cf7a183c2642e0f16f5f338c3d5c47d163dc8 Mon Sep 17 00:00:00 2001 From: cbehera-newrelic Date: Thu, 14 Nov 2024 19:19:50 +0530 Subject: [PATCH 4/7] reverting back Rob's change --- .../logs/logs-context/APM-logs-custom-tags | 34 +++++++++++++++++++ .../Custom-tags-agent-forwarder-logs | 33 ++++++++++++++++++ .../logs-context/custom-tags-for-apm-logs.mdx | 24 ------------- 3 files changed, 67 insertions(+), 24 deletions(-) create mode 100644 src/content/docs/logs/logs-context/APM-logs-custom-tags create mode 100644 src/content/docs/logs/logs-context/Custom-tags-agent-forwarder-logs delete mode 100644 src/content/docs/logs/logs-context/custom-tags-for-apm-logs.mdx diff --git a/src/content/docs/logs/logs-context/APM-logs-custom-tags b/src/content/docs/logs/logs-context/APM-logs-custom-tags new file mode 100644 index 00000000000..0f55a01ec36 --- /dev/null +++ b/src/content/docs/logs/logs-context/APM-logs-custom-tags @@ -0,0 +1,34 @@ +--- +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 easily filter, search, and correlate log data for faster and more efficient troubleshooting, improved performance, and optimized resource utilization. + +## Enable custom tags (labels) on application logs + +When enabled, New Relic language agents will add all custom tags (labels) to agent-forwarded logs. + +Enable custom tags is supprted on: +* [.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 + + diff --git a/src/content/docs/logs/logs-context/Custom-tags-agent-forwarder-logs b/src/content/docs/logs/logs-context/Custom-tags-agent-forwarder-logs new file mode 100644 index 00000000000..cea3a38f4b6 --- /dev/null +++ b/src/content/docs/logs/logs-context/Custom-tags-agent-forwarder-logs @@ -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 easily filter, search, and correlate log data for faster and more efficient troubleshooting, improved performance, and optimized resource utilization. + +## Enable custom tags (labels) on application logs + +When enabled, New Relic language agents will add all custom tags (labels) to agent-forwarded logs. + +Enable custom tags is supported on: +* [.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 diff --git a/src/content/docs/logs/logs-context/custom-tags-for-apm-logs.mdx b/src/content/docs/logs/logs-context/custom-tags-for-apm-logs.mdx deleted file mode 100644 index ea132d84254..00000000000 --- a/src/content/docs/logs/logs-context/custom-tags-for-apm-logs.mdx +++ /dev/null @@ -1,24 +0,0 @@ ---- -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. -freshnessValidatedDate: 2024-11-12 ---- - -Certain New Relic APM language agents allow you to opt-in to add your custom tags (labels) to agent-forwarded logs. -With custom tags on logs, DevOps and platform engineers can easily filter, search, and correlate log data for faster and more efficient troubleshooting, improved performance, and optimized resource utilization. - -## Enable custom tags (labels) on application logs - -When you've enable custom tags, these New Relic language agents will add all custom tags (labels) to agent-forwarded logs: - -* [.NET](/docs/apm/agents/net-agent/configuration/net-agent-configuration) -* [Ruby](/docs/apm/agents/ruby-agent/configuration/ruby-agent-configuration/) - - - From a5fcee98aa395187d030f332065869fa41014669 Mon Sep 17 00:00:00 2001 From: adutta-newrelic Date: Mon, 18 Nov 2024 11:38:33 +0530 Subject: [PATCH 5/7] Updated the Add custom tags (labels) to application log, deleted the APM-logs-custom-tags, and added the path in the logs.yaml file --- .../logs/logs-context/APM-logs-custom-tags | 34 ------------------- ...s => custom-tags-agent-forwarder-logs.mdx} | 3 +- src/nav/logs.yml | 2 ++ 3 files changed, 3 insertions(+), 36 deletions(-) delete mode 100644 src/content/docs/logs/logs-context/APM-logs-custom-tags rename src/content/docs/logs/logs-context/{Custom-tags-agent-forwarder-logs => custom-tags-agent-forwarder-logs.mdx} (95%) diff --git a/src/content/docs/logs/logs-context/APM-logs-custom-tags b/src/content/docs/logs/logs-context/APM-logs-custom-tags deleted file mode 100644 index 0f55a01ec36..00000000000 --- a/src/content/docs/logs/logs-context/APM-logs-custom-tags +++ /dev/null @@ -1,34 +0,0 @@ ---- -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 easily filter, search, and correlate log data for faster and more efficient troubleshooting, improved performance, and optimized resource utilization. - -## Enable custom tags (labels) on application logs - -When enabled, New Relic language agents will add all custom tags (labels) to agent-forwarded logs. - -Enable custom tags is supprted on: -* [.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 - - diff --git a/src/content/docs/logs/logs-context/Custom-tags-agent-forwarder-logs b/src/content/docs/logs/logs-context/custom-tags-agent-forwarder-logs.mdx similarity index 95% rename from src/content/docs/logs/logs-context/Custom-tags-agent-forwarder-logs rename to src/content/docs/logs/logs-context/custom-tags-agent-forwarder-logs.mdx index cea3a38f4b6..74d13f7e970 100644 --- a/src/content/docs/logs/logs-context/Custom-tags-agent-forwarder-logs +++ b/src/content/docs/logs/logs-context/custom-tags-agent-forwarder-logs.mdx @@ -1,6 +1,5 @@ - --- -title: 'Add Custom Tags (labels) to Application Logs' +title: 'Add custom tags (labels) to application logs' tags: - Logs - Enable log management in New Relic diff --git a/src/nav/logs.yml b/src/nav/logs.yml index ef3ca0b3be0..80cf9c0cd4f 100644 --- a/src/nav/logs.yml +++ b/src/nav/logs.yml @@ -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" From cd6d8d0512b8e2eb4df7d3e4aaf839602ac67615 Mon Sep 17 00:00:00 2001 From: adutta-newrelic Date: Mon, 18 Nov 2024 11:59:00 +0530 Subject: [PATCH 6/7] changes made to the file --- .../logs/logs-context/custom-tags-agent-forwarder-logs.mdx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/content/docs/logs/logs-context/custom-tags-agent-forwarder-logs.mdx b/src/content/docs/logs/logs-context/custom-tags-agent-forwarder-logs.mdx index 74d13f7e970..72e17deaebb 100644 --- a/src/content/docs/logs/logs-context/custom-tags-agent-forwarder-logs.mdx +++ b/src/content/docs/logs/logs-context/custom-tags-agent-forwarder-logs.mdx @@ -16,13 +16,14 @@ 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 easily filter, search, and correlate log data for faster and more efficient troubleshooting, improved performance, and optimized resource utilization. +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. ## Enable custom tags (labels) on application logs -When enabled, New Relic language agents will add all custom tags (labels) to agent-forwarded logs. +When enabled, New Relic language agents add all custom tags (labels) to agent-forwarded logs. + +Supported languages: -Enable custom tags is supported on: * [.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 From 13e1e4668b4999c5fbe6ed3ce470ea596484de81 Mon Sep 17 00:00:00 2001 From: adutta-newrelic Date: Mon, 18 Nov 2024 12:07:03 +0530 Subject: [PATCH 7/7] Updated the supported language section --- .../logs-context/custom-tags-agent-forwarder-logs.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/content/docs/logs/logs-context/custom-tags-agent-forwarder-logs.mdx b/src/content/docs/logs/logs-context/custom-tags-agent-forwarder-logs.mdx index 72e17deaebb..b3ec34e9bf6 100644 --- a/src/content/docs/logs/logs-context/custom-tags-agent-forwarder-logs.mdx +++ b/src/content/docs/logs/logs-context/custom-tags-agent-forwarder-logs.mdx @@ -26,8 +26,8 @@ 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 +* Go: coming soon +* Java: coming soon +* Node.js: coming soon +* PHP: coming soon +* Python: coming soon