Fuente de Splunk Heavy o Universal Forwarders (TCP)

Disponible para:

Registros

Descripción general

Utilice la fuente Splunk Heavy y Universal Forwarders (TCP) de Observability Pipelines para recibir registros enviados a sus Splunk Forwarders.

Requisitos previos

To use Observability Pipelines’ Splunk TCP source, you have a Splunk Enterprise or Cloud Instance alongside either a Splunk Universal Forwarder or a Splunk Heavy Forwarder routing data to your Splunk instance. You also have the following information available:

  • The bind address that your Observability Pipelines Worker will listen on to receive logs from your applications. For example, 0.0.0.0:8088. Later on, you configure your applications to send logs to this address.
  • The appropriate TLS certificates and the password you used to create your private key if your forwarders are globally configured to enable SSL.

See Deploy a Universal Forwarder or Deploy a Heavy Forwarder for more information on Splunk forwarders.

Configuración

Para la gestión de secretos: solo ingrese los identificadores para la dirección de Splunk TCP y, si corresponde, la frase de contraseña de la clave TLS. No ingrese los valores reales.

Configure esta fuente cuando configure una canalización. Puede configurar una canalización en la interfaz de usuario, utilizando la API o con Terraform. Las instrucciones de esta sección son para configurar la fuente en la interfaz de usuario.

Después de seleccionar la fuente Splunk TCP en la interfaz de usuario de la canalización, ingrese el identificador para su dirección de Splunk TCP. Si lo deja en blanco, se utiliza el predeterminado.

Notas:

  • De forma predeterminada, la fuente Splunk TCP no limita el tamaño de un evento. Para evitar un consumo de memoria ilimitado, como el causado por conexiones mal formadas o conexiones que permanecen abiertas indefinidamente, utilice la variable de entorno DD_OP_SPLUNK_TCP_MAX_FRAME_LENGTH para establecer una longitud máxima de trama en bytes.
  • Si ingresa identificadores de secretos y luego elige usar variables de entorno, la variable de entorno es el identificador ingresado y antepuesto con DD_OP_. Por ejemplo, si ingresó PASSWORD_1 para un identificador de contraseña, la variable de entorno para esa contraseña es DD_OP_PASSWORD_1.

Configuración opcional

Duración máxima de la conexión

Ingrese la cantidad máxima de segundos para mantener abierta una conexión. Si se deja sin configurar, las conexiones pueden permanecer abiertas indefinidamente.

Habilitar TLS

Toggle the switch to Enable TLS.

  • If you are using Secrets Management, enter the identifier for the key pass. See Secret defaults for the default used if the field is left blank.
  • Enter the following certificate and key files:
    • Server Certificate Path: The path to the certificate file that has been signed by your Certificate Authority (CA) root file in DER, PEM, or CRT (X.509).
    • (Optional) CA Certificate Path: The path to the certificate file that is your Certificate Authority (CA) root file in DER, PEM, or CRT (X.509).
    • (Optional) Private Key Path: The path to the .key private key file that belongs to your Server Certificate Path in DER, PEM, or CRT (PKCS #8) format.
    • Notes:
      • The configuration data directory /var/lib/observability-pipelines-worker/config/ is automatically appended to the file paths. See Advanced Worker Configurations for more information.
      • The file must be readable by the observability-pipelines-worker group and user.
  • (Optional) Toggle Verify certificate to require connecting clients to present a valid client certificate. This enforces mutual TLS (mTLS), where the Worker verifies the identity of each connecting client.

Valores predeterminados de Secret

These are the defaults used for secret identifiers and environment variables.

  • Identificador de dirección de Splunk TCP:
    • Hace referencia a la dirección del socket, como 0.0.0.0:9997, en la que el Observability Pipelines Worker escucha para recibir registros del Splunk Forwarder.
    • El identificador predeterminado es SOURCE_SPLUNK_TCP_ADDRESS.
  • Identificador de frase de contraseña TLS de Splunk TCP (cuando TLS está habilitado):
    • El identificador predeterminado es SOURCE_SPLUNK_TCP_KEY_PASS.
  • Splunk TCP address:
    • The Observability Pipelines Worker listens to this socket address to receive logs from the Splunk Forwarder. For example, 0.0.0.0:9997.
    • The default environment variable is DD_OP_SOURCE_SPLUNK_TCP_ADDRESS.
  • Splunk TCP TLS passphrase (when enabled):
    • The default environment variable is DD_OP_SOURCE_SPLUNK_TCP_KEY_PASS.

Connect Splunk Forwarder to the Observability Pipelines Worker

To forward your logs to the Worker, add the following configuration to your Splunk Heavy/Universal Forwarder’s etc/system/local/outputs.conf and replace <OPW_HOST> with the IP/URL of the host (or load balancer) associated with the Observability Pipelines Worker:

[tcpout]
compressed=false
sendCookedData=false
defaultGroup=opw

[tcpout:opw]
server=<OPW_HOST>:8099

<OPW_HOST> is the IP/URL of the host (or load balancer) associated with the Observability Pipelines Worker. For CloudFormation installs, the LoadBalancerDNS CloudFormation output has the correct URL to use. For Kubernetes installs, the internal DNS record of the Observability Pipelines Worker service can be used. For example: opw-observability-pipelines-worker.default.svc.cluster.local.

At this point, your logs should be going to the Worker, processed by the pipeline, and delivered to the configured destination.