Docs » Splunk Distribution of the OpenTelemetry Collector の利用開始 » Collector for Linux を使い始める » Collector for Linux のアンインストール

Collector for Linux のアンインストール 🔗

以下の手順に従って、Splunk Distribution of the OpenTelemetry Collector for Linux をアンインストールしてください。

You can use commands to uninstall the Collector packages if you used the installer script or Debian or RPM package to perform the installation.

If you installed the Collector using other methods (such as Ansible, Puppet, and Heroku as described in インストーラ・スクリプトを使用して Linux 用 Collector をインストールします。), follow uninstall instructions specific to the tool you used.

アンインストールによって削除されるファイルを理解する 🔗

ここで説明するアンインストールコマンドは、インストーラによってインストールおよび作成されたすべてのファイルを削除するわけではありません。同様に、アンインストールコマンドは、インストール後に実行された Collector サービスと Fluent サービスによって生成されたすべてのファイルを削除するわけではありません。通常、アンインストールによって削除されないファイルだけを残しておくのが安全です。

完全なリストではありませんが、インストーラ・スクリプトやパッケージマネージ ャコマンドでアンインストールを実行する際に、削除されるファイルや削除されないファイルの主な注意点を以下に示します:

  • /tmp/splunk-otel-collector.sh インストーラーのスクリプトは削除されません。再度実行する必要がなければ、スクリプトを削除することができます。

  • /etc/otel/collector/splunk-otel-collector.conf ファイルは削除されません。 /etc/otel/collector/splunk-otel-collector.conf を変更し、ファイル内の情報を保持したい場合は、インストーラ スクリプトを再実行する前に、必ずバックアップしてください。インストーラ・スクリプトは、実行するたびに /etc/otel/collector/splunk-otel-collector.conf を再作成し、既存の /etc/otel/collector/splunk-otel-collector.conf を上書きします。

  • Debian ベースのシステムでは、以下のファイルが削除されます。これらのファイルを残しておきたい場合は、アンインストールを実行する前に、必ず個々のファイルか /etc/otel/collector ディレクトリ全体をバックアップしてください。このリストにないファイルは削除されません。

    • /etc/otel/collector/agent_config.yaml

    • /etc/otel/collector/gateway_config.yaml

    • /etc/otel/collector/splunk-otel-collector.conf.example

    • /etc/otel/collector/splunk-support-bundle.sh

  • RPM ベースのシステムでは、以下のファイルを変更した場合、変更されたファイルは削除されず、拡張子が .rpmsave に変更されます。たとえば、アンインストールプロセスは、変更されたagent_config.yamlをagent_config.yaml.rpmsaveにリネームします。これらの .rpmsave ファイルが不要な場合は削除できます。このリストにある変更されていないファイルは削除されます。このリストにないファイルは削除されません。

    • /etc/otel/collector/agent_config.yaml

    • /etc/otel/collector/gateway_config.yaml

    • /etc/otel/collector/splunk-otel-collector.conf.example

    • /etc/otel/collector/splunk-support-bundle.sh

  • アンインストールコマンドで削除できないその他のファイルについては、アンインストールコマンドの実行後にコマンドラインインターフェイスに表示されるメッセージを参照してください。

Uninstall the Collector on Linux 🔗

注釈

アンインストールを実行する前に、その影響を必ず理解してください。アンインストールによって削除されるファイルを理解する を参照してください。

If you installed the Collector using the installer script or Debian or RPM package, you can uninstall both of these packages by running the following command:

curl -sSL https://dl.signalfx.com/splunk-otel-collector.sh > /tmp/splunk-otel-collector.sh;
sudo sh /tmp/splunk-otel-collector.sh --uninstall

このスニペットには、アンインストールを実行する前に、最新の splunk-otel-collector.sh インストーラ・スクリプトをダウンロードするコマンドが含まれていることに注意してください。このコマンドを含む理由は以下の通りです:

  • DebianまたはRPMパッケージを使用してインストールした場合、インストーラ・スクリプトを持っていない可能性があり、このアンインストールコマンドを使用するためにダウンロードする必要があります。

  • インストーラ・スクリプトを使用してインストールを実行した場合、最新のインストーラ・スクリプトがダウンロードされていない可能性があります。

アンインストールを確認するには、Verify the uninstall of the Collector on Linux を参照してください。

If you don’t want to uninstall both packages and just want to uninstall the Collector package see Uninstall only the Collector on Linux.

Uninstall only the Collector on Linux 🔗

The uninstall command described in Uninstall the Collector on Linux uninstalls both the Collector packages.

If you want to uninstall only the Collector package, use the following command for your platform.

Debianの場合 🔗

注釈

アンインストールを実行する前に、アンインストールによって削除されるファイルを理解する を参照してください。

Collector パッケージのみをアンインストールするには、以下のコマンドを実行します:

sudo apt-get purge splunk-otel-collector

RPM の場合 🔗

注釈

アンインストールを実行する前に、アンインストールによって削除されるファイルを理解する を参照してください。

  • Collector パッケージのみをアンインストールするには、システムのパッケージ・マネージャーのコマンドを実行します:

    sudo yum remove splunk-otel-collector
    

    または

    sudo dnf remove splunk-otel-collector
    

    または

    sudo zypper remove splunk-otel-collector
    

アンインストールを確認するには、Verify the uninstall of the Collector on Linux を参照してください。

Verify the uninstall of the Collector on Linux 🔗

While you can verify the uninstall of the Collector packages by watching for success messages in your command-line interface after running an uninstall command, you can also verify the uninstall by running a command that checks on the status of the Collector services. If the package has been successfully uninstalled, the status reflects this.

To verify the uninstall of the Collector package, run this command: .. code-block:: bash

sudo systemctl status splunk-otel-collector

期待される結果は Unit splunk-otel-collector.service could not be found. です

このページは 2025年04月10日 に最終更新されました。