Stream logs to Dynatrace

DataStream 2 supports sending log files to Dynatrace for improved log management and analytics for Dynatrace SaaS users.

Before you begin

Before you integrate DataStream with Dynatrace as a destination, you need to:

  • Create a Dynatrace access token with the "Ingest logs" token scope. For steps on how to create one, see Access token in the Dynatrace API documentation.

How to

  1. In Destination, select Dynatrace.

  2. In Display name, enter a human-readable name description for the destination. The name can't be longer than 255 characters.

  3. In Endpoint, enter the Dynatrace Ingestion API endpoint URL in the https://{dynatrace-environment-id}.live.dynatrace.com/api/v2/logs/ingest format.

  4. In API token, enter the Dynatrace access token. If you need to create one, see Access token in the Dynatrace API documentation.

  5. Click Additional options to add custom header details. In Content type, choose application/json.

  6. Click Validate & Save to validate the connection to the destination and save the details you provided.

    As part of the validation process, the system uses the credentials you enter to push a sample 0,access_validation request to the provided endpoint to validate the write access. For JSON logs, the data follows the {"access_validation":true} format. You can see the data only if the destination validates, and you can access the destination storage.

  7. Optionally, change the Push frequency to receive bundled logs to your destination every 30 or 60 seconds.

  8. Click Next.