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

Commit d96870f

Browse files
Fix
1 parent 866925d commit d96870f

File tree

4 files changed

+21
-186
lines changed

4 files changed

+21
-186
lines changed

gdi/opentelemetry/collector-windows/install-windows-manual.rst

Lines changed: 4 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _otel-install-windows-manual:
22

33
**************************************************
4-
Install the Collector for Windows using MSI
4+
Install the Collector for Windows manually
55
**************************************************
66

77
.. meta::
@@ -20,107 +20,13 @@ Alternatively, you can also install the Collector for Windows:
2020
* Using MSI. See :ref:`otel-install-windows-msi`.
2121
* Using deployment tools. See :ref:`otel-install-windows-tools`.
2222

23+
.. _install-windows-manual-prereqs:
24+
2325
Prerequisites
2426
==========================
2527

2628
.. include:: /_includes/requirements/collector-windows.rst
2729

28-
.. _windows-installer:
29-
30-
Windows installer file (MSI) installation
31-
===============================================================================
32-
33-
To install the package using Windows Installer, download the Windows MSI package (64-bit only) from :new-page:`GitHub releases <https://github.com/signalfx/splunk-otel-collector/releases>`.
34-
35-
- The package is installed to ``\Program Files\Splunk\OpenTelemetry Collector``.
36-
- The ``splunk-otel-collector`` service is created, but not started.
37-
- A default configuration file is copied to ``\ProgramData\Splunk\OpenTelemetry Collector\agent_config.yaml``, if it does not already exist. This file is required to start the ``splunk-otel-collector`` service.
38-
39-
.. note:: The ``ProgramData`` folder is hidden by default on Windows.
40-
41-
Next, proceed with the GUI, or follow the instructions to install using a Powershell terminal.
42-
43-
.. _windows-manual-installer-gui:
44-
45-
Install using the GUI
46-
---------------------------------
47-
48-
Run the downloaded package and follow the instructions in the guided setup.
49-
50-
.. _windows-powershell:
51-
52-
Install using a PowerShell terminal
53-
-----------------------------------------------
54-
55-
Follow these steps:
56-
57-
1. Open a PowerShell terminal.
58-
2. Run the following command, where ``PATH_TO_MSI`` is the full path to the downloaded package. For example, ``C:\your\download\folder\splunk-otel-collector-0.4.0-amd64.msi``.
59-
60-
.. code-block:: PowerShell
61-
62-
Start-Process -Wait msiexec "/i PATH_TO_MSI /qn"
63-
64-
3. Update :ref:`all variables in the configuration file <windows-manual-config-var>` as appropriate.
65-
4. Start the ``splunk-otel-collector`` service by rebooting the system or by running the following command in a PowerShell terminal:
66-
67-
.. code-block:: PowerShell
68-
69-
Start-Service splunk-otel-collector
70-
71-
Learn more about advanced configuration options (including Service Logging) using PowerShell in the Splunk Distribution of OpenTelemetry Collector :new-page:`Windows manual <https://github.com/signalfx/splunk-otel-collector/blob/main/docs/getting-started/windows-manual.md>`.
72-
73-
.. _windows-manual-fluentd:
74-
75-
Install Fluentd MSI for log collection
76-
==================================================
77-
78-
Default log collection
79-
-----------------------------------------------
80-
81-
Install, configure, and start the Collector with :ref:`Windows Installer <windows-installer>`. The Collector default configuration file ``\ProgramData\Splunk\OpenTelemetry Collector\agent_config.yaml`` listens for log events on ``127.0.0.1:8006`` and sends them to Splunk Observability Cloud.
82-
83-
Log collection with Fluentd
84-
-----------------------------------------------
85-
86-
.. note:: You need to be an Admin to configure log collection with Fluentd.
87-
88-
Perform the following steps to install Fluentd and forward ``collected`` log events to the Collector:
89-
90-
1. Install :new-page:`Fluentd MSI <https://docs.fluentd.org/installation/install-by-msi#td-agent-v4>` version 4.0 or higher.
91-
92-
2. Configure Fluentd to collect log events and forward them to the Collector:
93-
94-
- Option 1: Update the default config file provided by the Fluentd MSI at ``\opt\td-agent\etc\td-agent\td-agent.conf`` to collect the desired log events and forward them to ``127.0.0.1:8006``.
95-
96-
- Option 2: The installed Collector package provides a custom Fluentd config file ``\Program Files\Splunk\OpenTelemetry Collector\fluentd\td-agent.conf`` to collect log events from the Windows Event Log ``\Program Files\Splunk\OpenTelemetry Collector\fluentd\conf.d\eventlog.conf`` and forwards them to ``127.0.0.1:8006``.
97-
98-
To use these files, backup the ``\opt\td-agent\etc\td-agent``` directory, and copy the contents from ``\Program Files\Splunk\OpenTelemetry Collector\fluentd``` to ``\opt\td-agent\etc\td-agent```.
99-
100-
3. To apply any changes made to the Fluentd config files, restart the system, or restart ``fluentdwinsvc`` .
101-
102-
.. code-block:: PowerShell
103-
104-
- Stop-Service fluentdwinsvc
105-
- Start-Service fluentdwinsvc
106-
107-
4. View the Fluentd service logs and errors in ``\opt\td-agent\td-agent.log``.
108-
109-
Learn more about general Fluentd configuration details in the :new-page:`official Fluentd documentation <https://docs.fluentd.org/configuration>`.
110-
111-
.. _windows-chocolatey:
112-
113-
Install using a Chocolatey package
114-
===========================================
115-
116-
A :new-page:`Chocolatey package <https://community.chocolatey.org/packages/splunk-otel-collector>` is available to download, install, and configure the Collector and Fluentd with the following PowerShell command:
117-
118-
.. code-block:: PowerShell
119-
120-
choco install splunk-otel-collector --params="'/SPLUNK_ACCESS_TOKEN:MY_SPLUNK_ACCESS_TOKEN /SPLUNK_REALM:MY_SPLUNK_REALM'"
121-
122-
Learn more about the :new-page:`package parameters <https://github.com/signalfx/splunk-otel-collector/blob/main/docs/getting-started/windows-manual.md#package-parameters>` in GitHub.
123-
12430
.. _windows-docker:
12531

12632
Install using Docker
@@ -172,7 +78,7 @@ To install the Collector using the binary file, follow these steps:
17278
17379
# type Ctrl-c to stop the collector
17480
175-
.. _windows-manual-config-var:
81+
.. _install-windows-manual-modify-default:
17682

17783
Modify the default configuration
17884
==========================================

gdi/opentelemetry/collector-windows/install-windows-msi.rst

Lines changed: 13 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. _otel-install-windows-manual:
1+
.. _otel-install-windows-msi:
22

33
**************************************************
44
Install the Collector for Windows using MSI
@@ -20,11 +20,20 @@ Alternatively, you can also install the Collector for Windows:
2020
* Using deployment tools. See :ref:`otel-install-windows-tools`.
2121
* Manually. See :ref:`otel-install-windows-manual`.
2222

23+
.. _install-windows-msi-prereqs:
24+
2325
Prerequisites
2426
==========================
2527

2628
.. include:: /_includes/requirements/collector-windows.rst
2729

30+
.. _install-windows-msi-env-variables:
31+
32+
Collector environment variables
33+
=====================================
34+
35+
.. include:: /_includes/collector-env-vars.rst
36+
2837
.. _windows-installer:
2938

3039
Windows installer file (MSI) installation
@@ -61,8 +70,8 @@ Follow these steps:
6170
6271
Start-Process -Wait msiexec "/i PATH_TO_MSI /qn"
6372
64-
3. Update :ref:`all variables in the configuration file <windows-manual-config-var>` as appropriate.
65-
4. Start the ``splunk-otel-collector`` service by rebooting the system or by running the following command in a PowerShell terminal:
73+
1. Update all variables in the configuration file as appropriate. See :ref:`install-windows-msi-env-variables`.
74+
2. Start the ``splunk-otel-collector`` service by rebooting the system or by running the following command in a PowerShell terminal:
6675

6776
.. code-block:: PowerShell
6877
@@ -121,58 +130,7 @@ A :new-page:`Chocolatey package <https://community.chocolatey.org/packages/splun
121130
122131
Learn more about the :new-page:`package parameters <https://github.com/signalfx/splunk-otel-collector/blob/main/docs/getting-started/windows-manual.md#package-parameters>` in GitHub.
123132

124-
.. _windows-docker:
125-
126-
Install using Docker
127-
===============================
128-
129-
Run the following command to deploy the latest Docker image:
130-
131-
.. code-block:: PowerShell
132-
133-
$ docker run --rm -e SPLUNK_ACCESS_TOKEN=12345 -e SPLUNK_REALM=us0 `
134-
-p 13133:13133 -p 14250:14250 -p 14268:14268 -p 4317:4317 -p 6060:6060 `
135-
-p 8888:8888 -p 9080:9080 -p 9411:9411 -p 9943:9943 `
136-
--name=otelcol quay.io/signalfx/splunk-otel-collector-windows:latest
137-
138-
.. _windows-binary:
139-
140-
Install using the binary file
141-
===============================
142-
143-
To install the Collector using the binary file, follow these steps:
144-
145-
#. Download the binary for your architecture from :new-page:`GitHub releases <https://github.com/signalfx/splunk-otel-collector/releases>`.
146-
147-
#. If you're not using an existing or custom config file, download the :new-page:`default config file <https://github.com/signalfx/splunk-otel-collector/tree/main/cmd/otelcol/config/collector>`` for the Collector. See more at :ref:`windows-config-ootb`.
148-
149-
#. Run the binary from the command line:
150-
151-
.. code-block:: PowerShell
152-
153-
# see available command-line options
154-
PS> & '<download dir>\otelcol_windows_amd64.exe' --help
155-
Usage of otelcol:
156-
--config string Locations to the config file(s), note that only a single location can be set per flag entry e.g. --config=/path/to/first --config=path/to/second. (default "[]")
157-
--feature-gates string Comma-delimited list of feature gate identifiers. Prefix with '-' to disable the feature. '+' or no prefix will enable the feature. (default "[]")
158-
--no-convert-config Do not translate old configurations to the new format automatically. By default, old configurations are translated to the new format for backward compatibility.
159-
--set string Set arbitrary component config property. The component has to be defined in the config file and the flag has a higher precedence. Array config properties are overridden and maps are joined. Example --set=processors.batch.timeout=2s (default "[]")
160-
-v, --version Version of the collector.
161-
162-
# set the SPLUNK_REALM and SPLUNK_ACCESS_TOKEN env vars required in our default config files
163-
PS> $env:SPLUNK_REALM = "<realm>"
164-
PS> $env:SPLUNK_ACCESS_TOKEN = "<token>"
165-
166-
# start the collector
167-
PS> & '<download dir>\otelcol_windows_amd64.exe' --config=<path to config file>
168-
169-
# alternatively, use the SPLUNK_CONFIG env var instead of the --config command-line option
170-
PS> $env:SPLUNK_CONFIG = "<path to config file>"
171-
PS> & '<download dir>\otelcol_windows_amd64.exe'
172-
173-
# type Ctrl-c to stop the collector
174-
175-
.. _windows-manual-config-var:
133+
.. _install-windows-msi-modify-default:
176134

177135
Modify the default configuration
178136
==========================================
@@ -188,38 +146,6 @@ Configure proxy settings
188146

189147
To configure proxy settings to install and run the OpenTelemetry Collector, see :ref:`configure-proxy-collector`.
190148

191-
.. _windows-manual-custom:
192-
193-
Use a custom configuration file
194-
===========================================
195-
196-
If you're using a custom configuration file, mount the directory containing the file and either use the ``SPLUNK_CONFIG=<path>`` environment variable or the ``--config=<path>`` command line argument. Replace ``<path>`` with the path to the custom file within the container.
197-
198-
To mount configuration files on a Windows container, specify a directory name in which the configuration file is present.
199-
200-
Example with ``SPLUNK_CONFIG``
201-
-----------------------------------------------
202-
203-
.. code-block:: PowerShell
204-
205-
$ docker run --rm -e SPLUNK_ACCESS_TOKEN=12345 -e SPLUNK_REALM=us0 `
206-
-e SPLUNK_CONFIG=c:\splunk_config\gateway_config.yaml -p 13133:13133 `
207-
-p 14250:14250 -p 14268:14268 -p 4317:4317 -p 6060:6060 -p 8888:8888 -p 9080:9080 `
208-
-p 9411:9411 -p 9943:9943 -v ${PWD}\splunk_config:c:\splunk_config:RO `
209-
--name otelcol quay.io/signalfx/splunk-otel-collector-windows:latest
210-
211-
Example with ``--config``
212-
-----------------------------------------------
213-
214-
.. code-block:: PowerShell
215-
216-
$ docker run --rm -e SPLUNK_ACCESS_TOKEN=12345 -e SPLUNK_REALM=us0 `
217-
-p 13133:13133 -p 14250:14250 -p 14268:14268 -p 4317:4317 -p 6060:6060 `
218-
-p 8888:8888 -p 9080:9080 -p 9411:9411 -p 9943:9943 `
219-
-v ${PWD}\splunk_config:c:\splunk_config:RO `
220-
--name otelcol quay.io/signalfx/splunk-otel-collector-windows:latest `
221-
--config c:\splunk_config\gateway_config.yaml
222-
223149
Next steps
224150
==================================
225151

gdi/opentelemetry/collector-windows/install-windows-tools.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Alternatively, you can also install the Collector for Windows:
2626
* Using MSI. See :ref:`otel-install-windows-msi`.
2727
* Manually. See :ref:`otel-install-windows-manual`.
2828

29+
.. _install-windows-tools-prereqs:
30+
2931
Prerequisites
3032
==========================
3133

gdi/opentelemetry/collector-windows/install-windows.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Alternatively, you can also install the Collector for Windows:
2323
* Manually. See :ref:`otel-install-windows-manual`.
2424

2525
.. _windows-otel-requirements:
26+
.. _install-windows-prereqs:
2627

2728
Prerequisites
2829
==========================
@@ -165,7 +166,7 @@ The Windows installer script supports the following options:
165166
.. _otel-install-windows-modify:
166167

167168
Modify the default configuration
168-
===============================
169+
=========================================
169170

170171
The Splunk Distribution of the OpenTelemetry Collector comes with a default configuration, as detailed in :ref:`windows-config-ootb`. This configuration can be modified as needed. See :ref:`otel-windows-config` for more information.
171172

0 commit comments

Comments
 (0)