Collecteur hébergé Sumo Logic

Disponible pour:

Logs

Présentation

Utilisez la source de collecteur hébergé Sumo Logic d’Observability Pipelines pour recevoir les journaux envoyés vers votre collecteur hébergé Sumo Logic.

Prérequis

To use Observability Pipelines’ Sumo Logic source, you have applications sending data to Sumo Logic in the expected format.

To use Observability Pipelines’ Sumo Logic destination, you have a Hosted Sumo Logic Collector with a HTTP Logs source, and the following information available:

  • The bind address that your Observability Pipelines Worker will listen on to receive logs. For example, 0.0.0.0:80.
  • The URL of the Sumo Logic HTTP Logs Source that the Worker will send processed logs to. This URL is provided by Sumo Logic once you configure your hosted collector and set up an HTTP Logs and Metrics source.

See Configure HTTP Logs Source on Sumo Logic for more information.

Configuration

Pour la gestion des secrets : saisissez uniquement l'identifiant de l'adresse Sumo Logic. Ne saisissez pas la valeur réelle.

Configurez cette source lorsque vous configurez un pipeline. Vous pouvez configurer un pipeline dans l’UI, en utilisant l’API, ou avec Terraform. Les instructions de cette section concernent la configuration de la source dans l’UI.

Après avoir sélectionné la source Sumo Logic dans l’interface utilisateur du pipeline, saisissez l’identifiant de votre adresse Sumo Logic. Si vous le laissez vide, le default est utilisé.

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.

Paramètres optionnels

Dans le menu déroulant Decoding, sélectionnez si votre format d’entrée est brut Bytes, JSON, Graylog Extended Log Format (Gelf), ou Syslog. Si aucun décodage n’est sélectionné, le décodage par défaut est JSON.

Valeurs par défaut du secret

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

  • Identifiant de l’adresse Sumo Logic :
    • Fait référence à l’adresse de liaison, telle que 0.0.0.0:80., sur laquelle votre Observability Pipelines Worker écoute pour recevoir les journaux initialement destinés à la source HTTP Sumo Logic.
    • L’identifiant par défaut est SOURCE_SUMO_LOGIC_ADDRESS.
  • Sumo Logic address:
    • The bind address that your Observability Pipelines Worker listens on to receive logs originally intended for the Sumo Logic HTTP Source. For example, 0.0.0.0:80.
      Note: /receiver/v1/http/ path is automatically appended to the endpoint.
    • The default environment variable is DD_OP_SOURCE_SUMO_LOGIC_ADDRESS.

Send logs to the Observability Pipelines Worker over Sumo Logic HTTP Source

After you install the Observability Pipelines Worker and deploy the configuration, the Worker exposes HTTP endpoints that uses the Sumo Logic HTTP Source API.

To send logs to your Sumo Logic HTTP Source, you must point your existing logs upstream to the Worker:

curl -v -X POST -T [local_file_name] http://<OPW_HOST>/receiver/v1/http/<UNIQUE_HTTP_COLLECTOR_CODE>

<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, such as opw-observability-pipelines-worker.default.svc.cluster.local.

<UNIQUE_HTTP_COLLECTOR_CODE> is the string that follows the last forward slash (/) in the upload URL for the HTTP source that you provided in the Install the Observability Pipelines Worker step.

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