> ## Documentation Index
> Fetch the complete documentation index at: https://docs.envzero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Dynatrace Logs

> Forward env zero deployment and audit logs to Dynatrace using an API token with Ingest Logs scope, configured via environment variables on any scope.

<img src="https://mintcdn.com/envzero-b61043c8/f50k_bxcw7fbjToJ/images/guides/integrations/logs-forwarding/bec0c85b135e27cdb63a32fd8c0376bbcb71acc9959bf1a8288e77b76310ee30-dynatrace_logo_color_positive_horizontal.png?fit=max&auto=format&n=f50k_bxcw7fbjToJ&q=85&s=c9fe07e33943c9741638d18c4ccc6554" alt="Dynatrace logo" width="2048" height="364" data-path="images/guides/integrations/logs-forwarding/bec0c85b135e27cdb63a32fd8c0376bbcb71acc9959bf1a8288e77b76310ee30-dynatrace_logo_color_positive_horizontal.png" />

[Dynatrace](https://www.dynatrace.com) is a unified observability and security platform that allows to simplify cloud complexity and innovate faster and more securely with the only analytics and automation platform powered by causal AI.

<Note>
  Dynatrace log forwarding is implemented in the backend but not yet visible in the standard Organization Settings UI. To enable it for your organization, contact env zero support.
</Note>

## Setup

Here are the steps to configure it:

1. [Create](https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/basics/dynatrace-api-authentication#dynatrace-api-tokens-and-authentication) a API token with an `Ingest logs` scope.
2. In the env zero platform you will need to configure the following environment variables in [any scope](/guides/admin-guide/variables/#variables-and-scopes-in-env0) you would like to have them:

| Environment variable name     | Description                                                                                                                                                                                                    | Mandatory              |
| :---------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------- |
| `ENV0_DYNATRACE_HOST`         | Dynatrace host url - example: `fig29962.live.dynatrace.com`                                                                                                                                                    | Yes                    |
| `ENV0_DYNATRACE_TOKEN`        | The API token you created - read more about it [here](https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/basics/dynatrace-api-authentication#dynatrace-api-tokens-and-authentication) | Yes                    |
| `ENV0_DYNATRACE_SERVICE_NAME` | Logs will be added with a field called `serviceName` with this value                                                                                                                                           | No - Default: **env0** |

## Next steps

* [Logs Forwarding Overview](/guides/integrations/logs-forwarding) - See all supported log forwarding destinations.
* [Datadog Logs](/guides/integrations/logs-forwarding/datadog) - Alternative: forward logs to Datadog.
* [New Relic Logs](/guides/integrations/logs-forwarding/new-relic) - Alternative: forward logs to New Relic.
