Disponible para:

Registros

Descripción general

Utilice la fuente HTTP/S Server de Observability Pipelines para recopilar registros de cliente HTTP.

También puede enviar registros proporcionados por AWS con Datadog Lambda Forwarder a Observability Pipelines.

Requisitos previos

To use Observability Pipelines’ HTTP/S Server source, you need the following information available:

  • The HTTP/S server address, such as 0.0.0.0:9997. The Observability Pipelines Worker listens to this socket address for your HTTP client logs.
  • The HTTP authentication password.

Configuración

Para la gestión de secretos: solo ingrese los identificadores para la dirección del servidor HTTP/S y, si corresponde, el nombre de usuario y la contraseña para la autorización simple (también conocida como básica) y la frase de contraseña de la clave TLS. No ingrese los valores reales.

Configure esta fuente cuando configure un pipeline. Puede configurar un pipeline en la UI, 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 HTTP/S Server en la pipeline UI:

  1. Ingrese el identificador para su dirección de servidor HTTP/S. Si lo deja en blanco, se utiliza el predeterminado.
    • Nota: Ingrese únicamente el identificador para la dirección. No ingrese la dirección real.
  2. Seleccione su estrategia de autorización. Si seleccionó Plain:
    • Ingrese los identificadores para su nombre de usuario y contraseña del servidor HTTP/S. Si lo deja en blanco, se utiliza el predeterminado.
  3. (Opcional) Configure tokens de autenticación. Consulte Configurar tokens de autenticación para obtener más detalles.
  4. Seleccione el decodificador que desea utilizar en los mensajes HTTP. Sus registros de cliente HTTP deben estar en este formato. Nota: Si selecciona la decodificación bytes, el registro sin procesar se almacena en el campo message.
If you enter secret identifiers and then choose to use environment variables, the environment variable is the identifier entered and prepended with DD_OP_. For example, if you entered PASSWORD_1 for a password identifier, the environment variable for that password is DD_OP_PASSWORD_1.

Configuración opcional

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.

Configurar tokens de autenticación

Si almacena tokens como credenciales en el encabezado de autorización de su solicitud HTTP, puede configurar el Worker para verificar si las solicitudes HTTP entrantes tienen un token válido. Los eventos de solicitud que no tienen un token válido se descartan. El Worker también puede buscar un punto de conexión o una dirección IP en lugar de un encabezado.

Nota: No puede configurar tokens de autenticación con la estrategia de autorización Plain.

To configure authentication tokens, enable the Configure authentication tokens toggle:

  1. Click Manage Tokens and then Add Token.
  2. Enter the identifier for your token key.
    Note: If you are using environment variables, the environment variable for this token is the identifier you entered prepended with DD_OP_.
  3. (Optional) Enter a field and value if you want to add additional information to logs that are successfully authenticated with this specific token.
  4. Select the path to the token in the Path to Token dropdown menu:
    • Header for a custom header or an authorization header, such as "Authorization: Basic ABCDEF1234567=".
      • Optionally, enter the header name. Note: The header name is case insensitive.
    • Address for an IP address.
    • Path for an endpoint path.

Valores predeterminados de Secret

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

  • Identificador de dirección del servidor HTTP/S:
    • Hace referencia a la dirección del socket, como 0.0.0.0:9997, en la que Observability Pipelines Worker escucha para recibir registros de cliente HTTP.
    • El identificador predeterminado es SOURCE_HTTP_SERVER_ADDRESS.
  • Identificador de frase de contraseña TLS del servidor HTTP/S (cuando TLS está habilitado):
    • El identificador predeterminado es SOURCE_HTTP_SERVER_KEY_PASS.
  • Si utiliza autenticación simple:
    • Identificador de nombre de usuario del servidor HTTP/S:
      • El identificador predeterminado es SOURCE_HTTP_SERVER_USERNAME.
    • Identificador de contraseña del servidor HTTP/S:
      • El identificador predeterminado es SOURCE_HTTP_SERVER_PASSWORD.
  • HTTP/S server address:
    • The Observability Pipelines Worker listens to this socket address, such as 0.0.0.0:9997, for your HTTP client logs.
    • The default environment variable is DD_OP_SOURCE_HTTP_SERVER_ADDRESS.
  • If you are using plain authentication:
    • HTTP/S endpoint authentication username.
      • The default environment variable is DD_OP_SOURCE_HTTP_SERVER_USERNAME.
    • HTTP/S endpoint authentication password.
      • The default environment variable is DD_OP_SOURCE_HTTP_SERVER_PASSWORD.

Envíe registros proporcionados por AWS con el Datadog Lambda Forwarder a Observability Pipelines

Para enviar registros proporcionados por AWS a Observability Pipelines con la fuente HTTP/S Server:

Nota: Esto está disponible para versiones del Worker 2.15 o posteriores.

Configure un pipeline

  1. Navigate to Observability Pipelines.
  2. Select the HTTP Server source:
    1. Select None in the dropdown menu for Authorization strategy.
    2. Select JSON in the dropdown menu for Decoding.
  3. After you set up your destinations and processors, click Next: Install.
  4. On the Install page, enter the HTTP/S Server listener address, such as 0.0.0.0:9997.
  5. Follow the rest of the instructions on the page to install the Worker based on your platform.

Implemente el Datadog Lambda Forwarder

Follow the Datadog Forwarder CloudFormation installation instructions to deploy the Datadog Forwarder. After you have filled in DdApiKey and selected the appropriate DdSite, go to the Log Forwarding (Optional) section. Enter the following information in that section to configure the Forwarder for sending logs to Observability Pipelines:

  1. In the DdUrl field, enter the DNS or IP address of the load balancer or your VM. Note: Datadog recommends fronting your Worker with a load balancer.
  2. Enter the port in the DdPort field, such as 9997.
  3. If you want to encrypt traffic from the Datadog Forwarder to your Observability Pipelines Worker load balancer, you need to create an HTTPS listener and manage a certificate on your load balancer. Consult your cloud provider’s documentation. For example in AWS, see Create an HTTPS listener for your Application Load Balancer for more information.
  4. If you do not need to maintain encryption between the Datadog Forwarder and load balancer, select true in the DdNoSsl dropdown menu.
  5. Click Create stack, and wait for the creation to complete.
  6. You can find the installed forwarder Lambda function under the stack’s Resources tab with the logical ID Forwarder.
  7. Set up triggers for the installed Datadog Forwarder.