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.
Use the Universal Forwarder to send logs to the Splunk platform. See more at :ref:`collector-with-the-uf`.
114
-
115
-
Fluentd is turned off by default. If you already installed Fluentd on a host, re-install the Collector without Fluentd using the ``--without-fluentd`` option.
116
-
117
-
.. _fluentd-manual-config-linux:
118
-
119
-
Collect Linux logs with Fluentd
120
-
---------------------------------------
121
-
122
-
If you have a Log Observer entitlement or want to collect logs for the target host with Fluentd, use the ``--with-fluentd`` option to also install Fluentd when installing the Collector. For example:
sudo sh /tmp/splunk-otel-collector.sh --with-fluentd --realm $SPLUNK_REALM -- $SPLUNK_ACCESS_TOKEN
128
-
129
-
When turned on, the Fluentd service is configured by default to collect and forward log events with the ``@SPLUNK`` label to the Collector, which then sends these events to the HEC ingest endpoint determined by the ``--realm <SPLUNK_REALM>`` option. For example, ``https://ingest.<SPLUNK_REALM>.signalfx.com/v1/log``.
130
-
131
-
The following Fluentd plugins are also installed:
132
-
133
-
* ``capng_c`` for activating Linux capabilities.
134
-
* ``fluent-plugin-systemd`` for systemd journal log collection.
135
-
136
-
Additionally, the following dependencies are installed as prerequisites for the Fluentd plugins:
137
-
138
-
.. tabs::
139
-
140
-
.. tab:: Debian-based systems
141
-
142
-
* build-essential
143
-
* libcap-ng0
144
-
* libcap-ng-dev
145
-
* pkg-config
146
-
147
-
.. tab:: RPM-based systems
148
-
149
-
* Development Tools
150
-
* libcap-ng
151
-
* libcap-ng-devel
152
-
* pkgconfig
153
-
154
-
You can specify the following parameters to configure the package to send log events to a custom Splunk HTTP Event Collector (HEC) endpoint URL:
155
-
156
-
* ``--hec-url <URL>``
157
-
* ``--hec-token <TOKEN>``
158
-
159
-
HEC lets you send data and application events to a Splunk deployment over the HTTP and Secure HTTP (HTTPS) protocols. See :new-page:`Set up and use HTTP Event Collector in Splunk Web <https://docs.splunk.com/Documentation/Splunk/8.2.1/Data/UsetheHTTPEventCollector>`.
160
-
161
-
The main Fluentd configuration is installed to ``/etc/otel/collector/fluentd/fluent.conf``. Custom Fluentd source configuration files can be added to the ``/etc/otel/collector/fluentd/conf.d`` directory after installation.
162
-
163
-
Note the following:
164
-
165
-
* In this directory, all files with the .conf extension are automatically included by Fluentd.
166
-
* The td-agent user must have permissions to access the configuration files and the paths defined within.
167
-
* By default, Fluentd is configured to collect systemd journal log events from ``/var/log/journal``.
168
-
169
-
After any configuration modification, run ``sudo systemctl restart td-agent`` to restart the td-agent service.
170
-
171
-
If the td-agent package is upgraded after initial installation, you might need to set the Linux capabilities for the new version by performing the following steps for td-agent versions 4.1 or higher:
:description: Describes how to collect logs for the Splunk Distribution of OpenTelemetry Collector for Linux.
11
+
12
+
Use the Universal Forwarder to send logs to the Splunk platform. See more at :ref:`collector-with-the-uf`.
13
+
14
+
Fluentd is turned off by default. If you already installed Fluentd on a host, re-install the Collector without Fluentd using the ``--without-fluentd`` option.
If you have a Log Observer entitlement or want to collect logs for the target host with Fluentd, use the ``--with-fluentd`` option to also install Fluentd when installing the Collector. For example:
sudo sh /tmp/splunk-otel-collector.sh --with-fluentd --realm $SPLUNK_REALM -- $SPLUNK_ACCESS_TOKEN
27
+
28
+
When turned on, the Fluentd service is configured by default to collect and forward log events with the ``@SPLUNK`` label to the Collector, which then sends these events to the HEC ingest endpoint determined by the ``--realm <SPLUNK_REALM>`` option. For example, ``https://ingest.<SPLUNK_REALM>.signalfx.com/v1/log``.
29
+
30
+
The following Fluentd plugins are also installed:
31
+
32
+
* ``capng_c`` for activating Linux capabilities.
33
+
* ``fluent-plugin-systemd`` for systemd journal log collection.
34
+
35
+
Additionally, the following dependencies are installed as prerequisites for the Fluentd plugins:
36
+
37
+
.. tabs::
38
+
39
+
.. tab:: Debian-based systems
40
+
41
+
* build-essential
42
+
* libcap-ng0
43
+
* libcap-ng-dev
44
+
* pkg-config
45
+
46
+
.. tab:: RPM-based systems
47
+
48
+
* Development Tools
49
+
* libcap-ng
50
+
* libcap-ng-devel
51
+
* pkgconfig
52
+
53
+
You can specify the following parameters to configure the package to send log events to a custom Splunk HTTP Event Collector (HEC) endpoint URL:
54
+
55
+
* ``--hec-url <URL>``
56
+
* ``--hec-token <TOKEN>``
57
+
58
+
HEC lets you send data and application events to a Splunk deployment over the HTTP and Secure HTTP (HTTPS) protocols. See :new-page:`Set up and use HTTP Event Collector in Splunk Web <https://docs.splunk.com/Documentation/Splunk/8.2.1/Data/UsetheHTTPEventCollector>`.
59
+
60
+
The main Fluentd configuration is installed to ``/etc/otel/collector/fluentd/fluent.conf``. Custom Fluentd source configuration files can be added to the ``/etc/otel/collector/fluentd/conf.d`` directory after installation.
61
+
62
+
Note the following:
63
+
64
+
* In this directory, all files with the .conf extension are automatically included by Fluentd.
65
+
* The td-agent user must have permissions to access the configuration files and the paths defined within.
66
+
* By default, Fluentd is configured to collect systemd journal log events from ``/var/log/journal``.
67
+
68
+
After any configuration modification, run ``sudo systemctl restart td-agent`` to restart the td-agent service.
69
+
70
+
If the td-agent package is upgraded after initial installation, you might need to set the Linux capabilities for the new version by performing the following steps for td-agent versions 4.1 or higher:
0 commit comments