You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
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>`.
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:
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
-
124
30
.. _windows-docker:
125
31
126
32
Install using Docker
@@ -172,7 +78,7 @@ To install the Collector using the binary file, follow these steps:
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:
66
75
67
76
.. code-block:: PowerShell
68
77
@@ -121,58 +130,7 @@ A :new-page:`Chocolatey package <https://community.chocolatey.org/packages/splun
121
130
122
131
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
132
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 `
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`.
--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-configDo 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:
176
134
177
135
Modify the default configuration
178
136
==========================================
@@ -188,38 +146,6 @@ Configure proxy settings
188
146
189
147
To configure proxy settings to install and run the OpenTelemetry Collector, see :ref:`configure-proxy-collector`.
190
148
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 `
Copy file name to clipboardExpand all lines: gdi/opentelemetry/collector-windows/install-windows.rst
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ Alternatively, you can also install the Collector for Windows:
23
23
* Manually. See :ref:`otel-install-windows-manual`.
24
24
25
25
.. _windows-otel-requirements:
26
+
.. _install-windows-prereqs:
26
27
27
28
Prerequisites
28
29
==========================
@@ -165,7 +166,7 @@ The Windows installer script supports the following options:
165
166
.. _otel-install-windows-modify:
166
167
167
168
Modify the default configuration
168
-
===============================
169
+
=========================================
169
170
170
171
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.
0 commit comments