|
| 1 | +.. _collector-addon-install: |
| 2 | + |
| 3 | +********************************************************************************************* |
| 4 | +Install the Technical Add-on for the Splunk OpenTelemetry Collector |
| 5 | +********************************************************************************************* |
| 6 | + |
| 7 | +.. meta:: |
| 8 | + :description: Install the Technical Add-on for the Splunk Distribution of the OpenTelemetry Collector. |
| 9 | + |
| 10 | +.. toctree:: |
| 11 | + :maxdepth: 5 |
| 12 | + :hidden: |
| 13 | + |
| 14 | +You can install the Splunk Add-on for the OpenTelemetry Collector to a :ref:`single <collector-addon-install-uf>` or to :ref:`multiple <collector-addon-install-server>` universal forwarder instances. |
| 15 | + |
| 16 | +The following applies: |
| 17 | + |
| 18 | +* The Splunk Add-on for the OpenTelemetry Collector installer comes packaged with a number of agent bundle libraries. Do not delete these files, even if you do not plan on incorporating an agent bundle. |
| 19 | + |
| 20 | +* To save space you can remove the folder for the binaries you are not using. For example, if you are installing on Linux you can delete the Windows folder. |
| 21 | + |
| 22 | +* If your configuration uses more than one collector, see :ref:`collector-addon-configure-multiple`. |
| 23 | + |
| 24 | +.. _collector-addon-install-uf: |
| 25 | + |
| 26 | +Install the Splunk Add-on for the OpenTelemetry Collector to a universal forwarder instance |
| 27 | +============================================================================================================================================ |
| 28 | + |
| 29 | +Follow these steps to install the Splunk Add-on for OpenTelemetry Collector to a universal forwarder instance: |
| 30 | + |
| 31 | +#. Download and unzip the installation file to the machine running universal forwarder. In your unzipped folder, locate and unzip the .tar file to :guilabel:`SPLUNK_HOME > etc > deployment apps`. |
| 32 | + |
| 33 | +#. Create a new "local" folder in Splunk_TA_otel/. Open the configuration folder and copy the access_token file into your new local folder. |
| 34 | + |
| 35 | +#. In the default folder find the inputs.conf file. You can inspect the defaults for the settings and update the values if necessary. Note that the values in inputs.conf must match those in Splunk Web. |
| 36 | + |
| 37 | + * ``splunk_config``. ``$SPLUNK_OTEL_TA_HOME/configs/ta-agent-config.yaml`` by default. |
| 38 | + * ``disabled``. ``false`` by default. |
| 39 | + * ``start_by_shell``. ``false`` by default. |
| 40 | + * ``splunk_access_token_file``. ``access_token`` by default. |
| 41 | + * ``splunk_realm``. ``us0`` by default. A realm is a self-contained deployment that hosts organizations. You can find your realm name on your profile page in the user interface. |
| 42 | + * ``splunk_trace_ingest_url``. The default value is :new-page:`https://ingest.us0.signalfx.com/v2/trace`. |
| 43 | + |
| 44 | +#. In :strong:`Splunk Observability Cloud`, retrieve your access token value. If you do not have a token, contact your Splunk Observability Cloud administrator to create a token. See :ref:`admin-tokens` to learn more about tokens. |
| 45 | + |
| 46 | +#. In Splunk_TA_otel/local, create or open the access_token file, and replace the existing contents with the token value you copied from Splunk Observability Cloud. Save the updated file. |
| 47 | + |
| 48 | +#. In :strong:`Splunk Observability Cloud`, select your name, then select the Organization tab to verify that the realm value in the realm and sapm-endpoint files in your local folder reflect the value shown in Splunk Observability Cloud. Save any changes you make in the local files. |
| 49 | + |
| 50 | +#. Restart Splunkd. Your Add-on solution is now deployed. |
| 51 | + |
| 52 | +#. In :guilabel:`Splunk Infrastructure Monitoring`, navigate to the host where you deployed the Splunk Add-on for the OpenTelemetry Collector and select it to explore its metrics and status. For more information, see :ref:`use-navigators-imm`. |
| 53 | + |
| 54 | +.. _collector-addon-install-server: |
| 55 | + |
| 56 | +Install the Splunk Add-on for the OpenTelemetry Collector to multiple universal forwarder instances using the deployment server |
| 57 | +============================================================================================================================================ |
| 58 | + |
| 59 | +Follow these steps to install the Splunk Add-on for the OpenTelemetry Collector to multiple universal forwarder instances using the deployment server: |
| 60 | + |
| 61 | +#. Download and unzip the installation file to the machine running your deployment server. In your unzipped folder, locate and unzip the .tar file to :guilabel:`SPLUNK_HOME > etc > deployment apps`. |
| 62 | + |
| 63 | +#. Create a new "local" folder in Splunk_TA_otel/. Open the configuration folder and copy the access_token file into your new local folder. |
| 64 | + |
| 65 | +#. In the default folder find the inputs.conf file. You can inspect the defaults for the settings and update the values if necessary. Note that the values in inputs.conf must match those in Splunk Web. |
| 66 | + |
| 67 | + * ``splunk_config``. ``$SPLUNK_OTEL_TA_HOME/configs/ta-agent-config.yaml`` by default. |
| 68 | + * ``disabled``. ``false`` by default. |
| 69 | + * ``start_by_shell``. ``false`` by default. |
| 70 | + * ``splunk_access_token_file``. ``access_token`` by default. |
| 71 | + * ``splunk_realm``. ``us0`` by default. A realm is a self-contained deployment that hosts organizations. You can find your realm name on your profile page in the user interface. |
| 72 | + * ``splunk_trace_ingest_url``. The default value is :new-page:`https://ingest.us0.signalfx.com/v2/trace`. |
| 73 | + |
| 74 | +#. In :strong:`Splunk Observability Cloud`, retrieve your access token value. If you do not have a token, contact your Splunk Observability Cloud administrator to create a token. See :ref:`admin-tokens` to learn more about tokens. |
| 75 | + |
| 76 | +#. In Splunk_TA_otel/local, create or open the access_token file, and replace the existing contents with the token value you copied from Splunk Observability Cloud. Save the updated file. |
| 77 | + |
| 78 | +#. In :strong:`Splunk Observability Cloud`, select your name, then select the Organization tab to verify that the realm value in the realm and sapm-endpoint files in your local folder match the value shown in Splunk Observability Cloud. Save any changes you make in the local files. |
| 79 | + |
| 80 | +#. In :strong:`Splunk Web`, select :guilabel:`Settings > Forwarder Management` to access your deployment server. |
| 81 | + |
| 82 | +#. Create a server class: |
| 83 | + |
| 84 | + #. For "Edit clients", update :guilabel:`Include` to add your Universal Forwarder instance and save. |
| 85 | + |
| 86 | + #. Go to :guilabel:`Add apps` and select your new Splunk Add-on for the OpenTelemetry Collector service class. |
| 87 | + |
| 88 | + #. Select :guilabel:`Edit` on your newly created service class and make sure the following are checked: |
| 89 | + |
| 90 | + * Enable App |
| 91 | + * Restart Splunkd |
| 92 | + |
| 93 | +#. Save. Your Add-on solution is now deployed. |
| 94 | + |
| 95 | +#. In :guilabel:`Splunk Infrastructure Monitoring`, navigate to the host where you deployed the Splunk Add-on for the OpenTelemetry Collector and select it to explore its metrics and status. For more information, see :ref:`use-navigators-imm`. |
| 96 | + |
| 97 | +.. _collector-addon-mode: |
| 98 | + |
| 99 | +Configure the deployment mode of your Splunk Add-on Collector instance |
| 100 | +============================================================================================================================================ |
| 101 | + |
| 102 | +The OpenTelemetry Collector has different :ref:`deployment modes <otel-deployment-mode>`: |
| 103 | + |
| 104 | +* Host monitoring (agent): This is the default value and the simplest configuration. The Splunk Add-on for the OpenTelemetry Collector, when configured as an agent, sends data to Splunk Observability Cloud. |
| 105 | + |
| 106 | +* Data forwarding (gateway): When configured as a gateway, your Splunk Add-on for the OpenTelemetry Collector collects data from one or more agents before forwarding it to Splunk Observability Cloud. |
| 107 | + |
| 108 | +* As an agent that sends data to a gateway: To use a gateway instance, you create one or more instances of Splunk add-on for the OpenTelemetry Collector as agents that send data to that gateway instance. |
| 109 | + |
| 110 | +.. _collector-addon-mode-agent: |
| 111 | + |
| 112 | +Deploy the Splunk Add-on for the OpenTelemetry Collector as an agent |
| 113 | +------------------------------------------------------------------------------------------------------------------------ |
| 114 | + |
| 115 | +As an agent, the OpenTelemetry Collector sends data directly to Splunk Observability Cloud. This is the default configuration. Learn more at :ref:`collector-agent-mode`. |
| 116 | + |
| 117 | +If your instance is not configured as an agent and you want to configure it as an agent, edit your inputs.conf file and update the variable ``Splunk_config`` to reflect your agent configuration file name. You can find this file in your directory at ``/otelcol/config/``. The default file name is ``ta-agent-config.yaml``. If you are using a custom configuration file, provide that file name. |
| 118 | + |
| 119 | +.. _collector-addon-mode-gateway: |
| 120 | + |
| 121 | +Deploy the Splunk Add-on for the OpenTelemetry Collector as a gateway |
| 122 | +------------------------------------------------------------------------------------------------------------------------ |
| 123 | + |
| 124 | +If deployed as a gateway, the Collector instance can collect data from one or more Collector instances deployed as agents. The gateway instance then sends that data to Splunk Observability Cloud. Learn more at :ref:`collector-gateway-mode`. |
| 125 | + |
| 126 | +To configure your Splunk Add-on for OpenTelemetry Collector as a gateway: |
| 127 | + |
| 128 | +#. Edit your inputs.conf file to update the variable ``Splunk_config`` with your gateway configuration file name. You can find this file in your directory at ``/otelcol/config/``. The default file name for the gateway file is ``ta-gateway-config.yaml``. If you are using a custom configuration file, provide that file name. |
| 129 | + |
| 130 | +#. Set the ``splunk_listen_interface`` value to ``0.0.0.0`` or to the specific IP address that sends data to this gateway in ``local/inputs.conf``. |
| 131 | + |
| 132 | +.. caution:: You must also configure one or more Collector instances as agents that send data to your new gateway. |
| 133 | + |
| 134 | +.. _collector-addon-mode-send: |
| 135 | + |
| 136 | +Configure Splunk Add-on for OpenTelemetry Collector as an agent that sends data to a gateway |
| 137 | +------------------------------------------------------------------------------------------------------------------------ |
| 138 | + |
| 139 | +You can set up one or more Collector instances as agents that send data to another instance that is set up as a gateway. See more at :ref:`collector-agent-to-gateway`. |
| 140 | + |
| 141 | +To do this configure an instance that works as a gateway, and then one or more instances that operate as agents: |
| 142 | + |
| 143 | +#. Create your gateway, if you have not already done so. See :ref:`collector-addon-mode-gateway` for more information. |
| 144 | + |
| 145 | +#. Edit your inputs.conf file to update the variable ``Splunk_config`` to reflect your gateway configuration file name. You can find the default configuration file in your directory at ``/otelcol/config/``. The default file name for this configuration file is ``ta-agent-to-gateway-config.yaml``. If you are using a custom configuration file, provide that file name. |
| 146 | + |
| 147 | +#. In the README directory, open ``inputs.conf.spec`` and copy the attribute for the ``splunk_gateway_url``. |
| 148 | + |
| 149 | +#. Paste this value into ``ta-agent-to-gateway-config.yaml`` and then update the value for this setting with the gateway IP address. |
0 commit comments