Utiliza el origen de Logstash de los pipelines de observabilidad para recibir logs de tu Agent de Logstash. Selecciona y configura este origen cuando configures un pipeline.

Requisitos previos

To use Observability Pipelines’ Logstash source, you need the following information available:

  • Logstash address, such as 0.0.0.0:8088. The Observability Pipelines Worker listens on this bind address to receive logs from your applications. 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.

Configurar el origen en la interfaz de usuario del pipeline

Selecciona y configura este origen cuando configures pipeline. La siguiente información se refiere a la configuración del origen en la interfaz de usuario del pipeline.

Optionally, toggle the switch to enable TLS. If you enable TLS, the following certificate and key files are required:

  • Server Certificate Path: The path to the certificate file that has been signed by your Certificate Authority (CA) Root File in DER or PEM (X.509).
  • CA Certificate Path: The path to the certificate file that is your Certificate Authority (CA) Root File in DER or PEM (X.509).
  • Private Key Path: The path to the .key private key file that belongs to your Server Certificate Path in DER or PEM (PKCS #8) format.

Enviar logs al worker de pipelines de observabilidad a través de Logstash

To configure Logstash to send logs to the Observability Pipelines Worker, use the following output configuration:

output {
	lumberjack {
		# update these to point to your Observability Pipelines Worker
		hosts => ["127.0.0.1"]
		port => 5044
		ssl_certificate => "/path/to/certificate.crt"
	}
}

Note: Logstash requires SSL to be configured.

Enviar logs mediante Filebeat a pipelines de observabilidad

Utiliza el origen de Logstash para enviar logs al worker de pipelines de observabilidad con Filebeat.

  1. Configura Filebeat si aún no lo has hecho.

  2. En el archivo filebeat.yml:
    a. Comenta la sección de configuración de Elasticsearch Output (Salida de Elasticsearch).
    b. Elimina los comentarios y configura la sección Logstash Output (Salida de Logstash):

    # ------------------------------ Logstash Output -------------------------------
    output.logstash:
    # The Logstash hosts
    hosts: ["<OPW_HOST>:9997"]
    

    <OPW_HOST> es la dirección IP de host o la URL del equilibrador de carga asociada con el worker de pipelines de observabilidad.

    Para las instalaciones de CloudFormation, utiliza la salida LoadBalancerDNS de CloudFormation para la URL.

    Para las instalaciones de Kubernetes, puedes utilizar el registro DNS interno del servicio de worker de pipelines de observabilidad. Por ejemplo: opw-observability-pipelines-worker.default.svc.cluster.local.

  3. Configura un pipeline con el origen de Logstash.