Skip to content

Commit 6531ea8

Browse files
update the config file to include the labels config options (#2246)
1 parent ec5a4c6 commit 6531ea8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

newrelic-agent/src/main/resources/newrelic.yml

+13
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,19 @@ common: &default_settings
119119
# Default is 10000. Setting to 0 will disable.
120120
#max_samples_stored: 10000
121121

122+
# Provides the ability to add custom tags(labels) to agent forwarded logs. Labels are
123+
# pulled from the top-level 'labels' section (located near the bottom of this config file).
124+
# Default is false.
125+
labels:
126+
127+
# When true, custom tags (labels) will be added to agent forwarded logs.
128+
enabled: false
129+
130+
# A comma separated list of label keys that should NOT be added to application logs.
131+
# Example:
132+
# exclude: label_name1,label_name2
133+
exclude:
134+
122135
# Whether the log events should include context from loggers with support for that.
123136
context_data:
124137

0 commit comments

Comments
 (0)