Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit efa890e

Browse files
Metadata
1 parent 67d0a15 commit efa890e

File tree

1 file changed

+35
-31
lines changed

1 file changed

+35
-31
lines changed

metrics-and-metadata/relatedcontent.rst

Lines changed: 35 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,12 @@ The following sections list the metadata key names required to enable Related Co
124124
Splunk APM
125125
-----------------------------------------------------------------
126126

127-
The following APM span tags are required to enable Related Content:
127+
To enable Related Content for APM use one of these span tags:
128128

129129
- ``service.name``
130-
- ``deployment.environment``
130+
- ``trace_id``
131+
132+
Optionally, you can also use ``deployment.environment`` with ``service.name``.
131133

132134
The default configuration of the Splunk Distribution of the OpenTelemetry Collector already provides these span tags. To ensure full functionality of Related Content, do not change any of the metadata key names or span tags provided by the Splunk OTel Collector.
133135

@@ -154,39 +156,56 @@ For example, consider a scenario in which Related Content needs to return data f
154156
Splunk Infrastructure Monitoring
155157
-----------------------------------------------------------------
156158

157-
The following Infrastructure Monitoring metadata keys are required to enable Related Content:
159+
To enable Related Content for IM use one of these span tag combinations:
158160

159-
- ``host.name``
161+
- ``host.name``. It falls back on ``host``, ``aws_private_dns_name`` (AWS), ``instance_name`` (GCP), ``azure_computer_name`` (Azure)
160162
- ``k8s.cluster.name``
161-
- ``k8s.node.name``
162-
- ``k8s.pod.name``
163-
- ``container.id``
164-
- ``k8s.namespace.name``
165-
- ``kubernetes.workload.name``
163+
- ``k8s.cluster.name`` + ``k8s.node.name``
164+
- ``k8s.cluster.name`` + ``k8s.node.name`` (optional) + ``k8s.pod.name``
165+
- ``k8s.cluster.name`` + ``k8s.node.name`` (optional) + ``k8s.pod.name`` (optional) + ``container.id``
166+
- ``service.name``
167+
- ``service.name`` + ``deployment.environment`` (optional) + ``k8s.cluster.name`` (optional)
166168

167169
If you're using the default configuration of the Splunk Distribution of the OpenTelemetry Collector for Kubernetes, the required Infrastructure Monitoring metadata is provided. See more at :ref:`otel-install-k8s`.
168170

169171
If you're using other distributions of the OpenTelemetry Collector or non-default configurations of the Splunk Distribution to collect infrastructure data, Related Content won't work out of the box.
170172

171173
.. _relatedcontent-log-observer:
172174

173-
Splunk Log Observer
175+
Splunk logs
174176
-----------------------------------------------------------------
175177

176-
.. include:: /_includes/log-observer-transition.rst
178+
To enable Related Content for logs use one of these span tags:
177179

178-
The following key names are required to enable Related Content for Log Observer:
179-
180-
- ``service.name``
181-
- ``deployment.environment``
182180
- ``host.name``
183-
- ``trace_id``
181+
- ``service.name``
184182
- ``span_id``
183+
- ``trace_id``
185184

186185
To ensure full functionality of both Log Observer and Related Content, verify that your log events fields are correctly mapped. Correct log field mappings enable built-in log filtering, embed logs in APM and Infrastructure Monitoring functionality, and enable fast searches as well as the Related Content bar.
187186

188187
If the key names in the preceding list use different names in your log fields, remap them to the key names listed here. For example, if you don't see values for :strong:`host.name` in the Log Observer UI, check to see whether your logs use a different field name, such as :strong:`host_name`. If your logs do not contain the default field names exactly as they appear in the preceding list, remap your logs using one of the methods in the following section.
189188

189+
Kubernetes log fields
190+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
191+
192+
The Splunk Distribution of the OpenTelemetry Collector injects the following fields into your Kubernetes logs. Do not modify them if you want to use Related Content.
193+
194+
- ``k8s.cluster.name``
195+
- ``k8s.node.name``
196+
- ``k8s.pod.name``
197+
- ``container.id``
198+
- ``k8s.namespace.name``
199+
- ``kubernetes.workload.name``
200+
201+
Use one of these tag combinations to enable Related Content:
202+
203+
- ``k8s.cluster.name`` + ``k8s.node.name``
204+
- ``k8s.cluster.name`` + ``k8s.node.name`` (optional) + ``k8s.pod.name``
205+
- ``k8s.cluster.name`` + ``k8s.node.name`` (optional) + ``k8s.pod.name`` (optional) + ``container.id``
206+
207+
Learn more about the Collector for Kubernetes at :ref:`collector-kubernetes-intro`.
208+
190209
.. _remap-log-fields:
191210

192211
Remap log fields
@@ -207,7 +226,6 @@ The following table describes the four methods for remapping log fields:
207226
* - Client-side
208227
- Configure your app to remap the necessary fields.
209228

210-
211229
When to use Log Field Aliasing
212230
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
213231

@@ -218,20 +236,6 @@ Use Log Field Aliasing to remap fields in Splunk Observability Cloud when you ca
218236
- You do not want to transform your data at index time.
219237
- You want the new alias to affect every log message, even those that came in from a time before you created the alias.
220238

221-
Kubernetes log fields
222-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
223-
224-
The Splunk Distribution of the OpenTelemetry Collector injects the following fields into your Kubernetes logs. Do not modify them if you want to use Related Content.
225-
226-
- ``k8s.cluster.name``
227-
- ``k8s.node.name``
228-
- ``k8s.pod.name``
229-
- ``container.id``
230-
- ``k8s.namespace.name``
231-
- ``kubernetes.workload.name``
232-
233-
Learn more about the Collector for Kubernetes at :ref:`collector-kubernetes-intro`.
234-
235239
How to change your metadata key names
236240
=================================================================
237241

0 commit comments

Comments
 (0)