Datadog Log Management offers simple yet powerful tools for teams to transform disparate, unstructured streams of raw log data into centralized, structured datasets.
env0 can send all of your deployment logs and audit logs directly to your Datadog account.

Setup

Here are the steps to configure it:

  1. Generate an API key in your Datadog account using this guide

  2. There are two ways to configure the integrations:

    1. In the env0 app

      In the organization's integrations page, click on Datadog and fill the form's fields:


    2. Using environment variables

      In the env0 platform you will need to configure the following environment variables in any scope you would like to have them:


      Environment variable nameDescriptionMandatory
      ENV0_DATADOG_API_KEYThe API key value you've created. This is for authentication against your Datadog accountYes
      ENV0_DATADOG_HOSTSpecify a Datadog host. You should put only the host and not the full url

      Recommended hosts - lambda-intake.logs.datadoghq.com for US, lambda-intake.logs.datadoghq.eu for EU

      You can read more here.
      Yes
      ENV0_DATADOG_PORTSpecify the port endpoint for your Datadog host. Datadog log forwarding in env0 uses TCP over TLS endpoints.

      If you are using the lambda-intake.logs.datadoghq.com or lambda-intake.logs.datadoghq.eu hosts, use the 443 port

      You can read more here.
      No, but it is recommended to provide explicitly.

      Default:10516

env0 adds metadata according to the log type:

  1. Audit Logs:

    • service - env0-audits
    • ddsource - env0-audit-logs
  2. Deployment Logs:

    • service - env0-deployments
    • ddsource - env0-deployment-logs