-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OTL-2195: Disable fluentd by default in installer scripts #3369
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,17 @@ script deploys and configures: | |
|
||
- Splunk OpenTelemetry Collector for Linux (**x86_64/amd64 and aarch64/arm64 platforms only**) | ||
- [SignalFx Smart Agent and collectd bundle](https://github.com/signalfx/signalfx-agent/releases) (**x86_64/amd64 platforms only**) | ||
- [Fluentd (via the TD Agent)](https://www.fluentd.org/) | ||
- Optional, **enabled** by default for supported Linux distributions | ||
- See the [Fluentd Configuration](#fluentd-configuration) section for additional information, including how to skip installation. | ||
- Log Collection with [Fluentd (via the TD Agent)](https://www.fluentd.org/) | ||
- Optional, **disabled** by default | ||
- See the [Fluentd Configuration](#fluentd-configuration) section for additional information, including how to enable installation for [supported platforms](#supported-platforms). | ||
- [Splunk OpenTelemetry Auto Instrumentation for Java](https://github.com/signalfx/splunk-otel-collector/tree/main/instrumentation#linux-java-auto-instrumentation) | ||
- Optional, **disabled** by default | ||
- See the [Auto Instrumentation](#auto-instrumentation) section for additional information, including how to enable installation. | ||
|
||
> IMPORTANT: systemd is required to use this script. | ||
### Supported Platforms | ||
|
||
Currently, the following Linux distributions and versions are supported: | ||
|
||
- Amazon Linux: 2, 2023 (**Note:** Log collection with Fluentd not currently supported for Amazon Linux 2023.) | ||
|
@@ -85,7 +87,7 @@ sudo sh /tmp/splunk-otel-collector.sh --realm SPLUNK_REALM --memory SPLUNK_MEMOR | |
``` | ||
|
||
By default, apt/yum/zypper repo definition files will be created to download | ||
the Collector and Fluentd deb/rpm packages from | ||
the Collector and Fluentd (if enabled) deb/rpm packages from | ||
[https://splunk.jfrog.io/splunk](https://splunk.jfrog.io/splunk) and | ||
[https://packages.treasuredata.com](https://packages.treasuredata.com), | ||
respectively. To skip these steps and use pre-configured repos on the target | ||
|
@@ -95,7 +97,7 @@ packages, specify the `--skip-collector-repo` and/or | |
|
||
```sh | ||
curl -sSL https://dl.signalfx.com/splunk-otel-collector.sh > /tmp/splunk-otel-collector.sh && \ | ||
sudo sh /tmp/splunk-otel-collector.sh --realm SPLUNK_REALM --skip-collector-repo --skip-fluentd-repo \ | ||
sudo sh /tmp/splunk-otel-collector.sh --realm SPLUNK_REALM --with-fluentd --skip-collector-repo --skip-fluentd-repo \ | ||
-- SPLUNK_ACCESS_TOKEN | ||
``` | ||
|
||
|
@@ -183,14 +185,21 @@ To upgrade the Collector, run the following commands on your system (requires | |
|
||
### Fluentd Configuration | ||
|
||
> If log collection is not required, run the installer script with the | ||
> `--without-fluentd` option to skip installation of Fluentd and the | ||
> plugins/dependencies listed below. | ||
If log collection with Fluentd is required and your platform is [supported]( | ||
#supported-platforms), run the installer script with the `--with-fluentd` | ||
option to install/configure Fluentd and the plugins/dependencies listed below. | ||
For example: | ||
|
||
```sh | ||
curl -sSL https://dl.signalfx.com/splunk-otel-collector.sh > /tmp/splunk-otel-collector.sh && \ | ||
sudo sh /tmp/splunk-otel-collector.sh --realm SPLUNK_REALM --with-fluentd -- SPLUNK_ACCESS_TOKEN | ||
``` | ||
|
||
By default, the Fluentd service will be installed and configured to forward log | ||
events with the `@SPLUNK` label to the Collector (see below for how to add | ||
custom Fluentd log sources), and the Collector will send these events to the | ||
HEC ingest endpoint determined by the `--realm SPLUNK_REALM` option, e.g. | ||
The Fluentd deb/rpm package (`td-agent`) will be installed, and the `td-agent` | ||
service will be configured to forward log events with the `@SPLUNK` label to | ||
the Collector (see below for how to add custom Fluentd log sources). The | ||
Collector will then send these events to the HEC ingest endpoint determined by | ||
the `--realm SPLUNK_REALM` option, i.e. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does it make sense to still default the HEC endpoint to the realm? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this was handled in #3330. |
||
`https://ingest.SPLUNK_REALM.signalfx.com/v1/log`. | ||
|
||
The following Fluentd plugins will also be installed: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -677,7 +677,7 @@ Options: | |
(default: https://ingest.REALM.signalfx.com/v2/trace) | ||
--uninstall Removes the Splunk OpenTelemetry Collector for Linux. | ||
--with[out]-fluentd Whether to install and configure fluentd to forward log events to the collector. | ||
(default: --with-fluentd) | ||
(default: --without-fluentd) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So --without-fluentd is preserved for backward compatibility? What happens if both are used? Is evaluation order based? Just thinking about conflicts. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
--with[out]-instrumentation Whether to install and configure the splunk-otel-auto-instrumentation package. | ||
(default: --without-instrumentation) | ||
--deployment-environment <value> Set the 'deployment.environment' resource attribute to the specified value. | ||
|
@@ -848,7 +848,7 @@ parse_args_and_install() { | |
local trace_url= | ||
local uninstall="false" | ||
local mode="agent" | ||
local with_fluentd="true" | ||
local with_fluentd="false" | ||
local collector_config_path= | ||
local skip_collector_repo="false" | ||
local skip_fluentd_repo="false" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is required by whom?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since our default configs currently only support fluentd (i.e. the filelog receiver has not yet been added), users may need to install fluentd for log collection.