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

Commit ce92552

Browse files
Merge pull request #1528 from splunk/repo-sync
Pulling refs/heads/main into main
2 parents 5ca251a + 6948981 commit ce92552

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

gdi/opentelemetry/collector-kubernetes/install-k8s.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Depending on your destination, you need:
7272
* ``splunkObservability.accessToken``. Your Splunk Observability Cloud org access token with ingest authorization scope. See :ref:`admin-org-tokens`.
7373
* ``splunkObservability.realm``. Splunk realm to send telemetry data to. The default is ``us0``. See :new-page:`realms <https://dev.splunk.com/observability/docs/realms_in_endpoints/>`.
7474

75-
.. note:: The Collector for Kubernetes uses ``main`` as the default Splunk platform index.
75+
.. note:: The Collector for Kubernetes uses ``main`` as the default Splunk platform index. You can use annotations to send data to different indexes. See :ref:`kubernetes-config-logs-annotations-indexes` for more information.
7676

7777
Deploy the Helm chart
7878
==============================================

gdi/opentelemetry/collector-kubernetes/kubernetes-config-logs.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Collect logs and events for the Collector for Kubernetes
88
.. meta::
99
:description: Configure logs and events for the Splunk Distribution of OpenTelemetry Collector for Kubernetes.
1010

11-
1211
.. note:: See how to configure the Collector for Kubernetes at :ref:`otel-kubernetes-config` and :ref:`otel-kubernetes-config-advanced`.
1312

1413
Starting on version 0.86.0, the Splunk Distribution of the Collector for Kubernetes collects native OpenTelemetry logs by default.
@@ -77,17 +76,26 @@ To process multi-line logs, add the following section to your values.yaml config
7776
7877
Use :new-page:`regex101 <https://regex101.com/ >` to find a Golang regex that works for your format and specify it in the config file for the config option ``firstEntryRegex``.
7978

79+
.. _kubernetes-config-logs-annotations:
80+
8081
Manage log ingestion using annotations
8182
===========================================================================
8283

83-
Use the ``splunk.com/index`` annotation on pods or namespaces to indicate which Splunk platform indexes you want to send logs to. Pod annotation will take precedence over namespace annotation when both are annotated.
84+
.. _kubernetes-config-logs-annotations-indexes:
85+
86+
Send logs to different indexes
87+
-----------------------------------------------------
88+
89+
The Collector for Kubernetes uses ``main`` as the default Splunk platform index. Use the ``splunk.com/index`` annotation on pods or namespaces to indicate which Splunk platform indexes you want to send logs to.
8490

8591
For example, to send logs from the ``kube-system`` namespace to the ``k8s_events`` index, use the command:
8692

8793
.. code-block:: bash
8894
8995
kubectl annotate namespace kube-system splunk.com/index=k8s_events
9096
97+
.. note:: A pod annotation takes precedence over a namespace annotation when both are annotated.
98+
9199
Filter logs using pod or namespace annotations
92100
-----------------------------------------------------
93101

logs/processors.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ Going forward after the transition to Log Observer Connect, you can process data
4141
* - Data Stream Processor
4242
- See :new-page:`Use the Data Stream Processor <https://docs.splunk.com/Documentation/DSP/1.4.2/User/About>`.
4343

44+
* - Ingest Processor
45+
- See :new-page:`About Ingest Processor <https://docs.splunk.com/Documentation/SplunkCloud/latest/IngestProcessor/AboutIngestProcessorSolution>`.
46+
4447

4548
Prepackaged processing rules
4649
=============================================================================

0 commit comments

Comments
 (0)