> For the complete documentation index, see [llms.txt](https://docs.apica.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apica.io/flow/list-of-forwarders/dynatrace-forwarding.md).

# Dynatrace Forwarding

This page explains how to forward logs to Dynatrace from Apica.

To Generate an API Key from Dynatrace, please follow the instructions in this [link](https://www.dynatrace.com/support/help/dynatrace-api/basics/dynatrace-api-authentication).

NOTE: Make sure to add the "logs.ingest" scope during token creation.

### Steps to Create Dynatrace Forwarding <a href="#steps-to-create-new-relic-forwarding" id="steps-to-create-new-relic-forwarding"></a>

To forward your logs to Dynatrace, begin by logging into Apica's website.

* Navigate to the **`Integrations`**&#x74;ab, select the option for **`Forwarders`**, and then **`Add Forwarder`**
* Next, choose **`Dynatrace(HTTP event collector)`** from the available options; this will bring up a new form with fields such as `API Key`, `Host`, `Tags`, etc. Fill out the required data in these fields and click **`Create`**.

Create Forwarder:

Copy

```
Api_Key:       <DYNATRACE-API-KEY>
Host:          <{DYNATRACE_ENV_ID}.live.dynatrace.com>
Tags:          logflow
Type:          _json
Name:          Dynatrace
```

* Next, head over to the **`Explore`** page and pick out a namespace you wish to forward your logs to Dynatrace.
* Click on the three dots icon located next to the calendar and opt for **`Map Forwarder`**; this will open a new modal that allows you to choose the newly created Dynatrace forwarder schema (this can be identified via its Dynatrace icon).
* Confirm your selection by clicking **`OK`**.
* A successful mapping is indicated by a popup showing that namespace-application pairs are connected with respective forwarders; additionally, you'll notice an updated Namespace Forwarder status in effect.
* Your logs are now being forwarded to Dynatrace.

> To help make the steps easier to understand, below are the screenshots illustrating each of the instructions given above.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FTH4fgYxUEHt3YlApFYc3%2Fimage.png?alt=media&amp;token=36eef2f7-548f-46b3-9650-04ef560cdcaf" alt=""><figcaption><p>Add Forwarder</p></figcaption></figure>

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2F3E7jRP5fLRsLR8jlO4AV%2Fimage.png?alt=media&amp;token=05c8e6cc-c62a-45fa-9d6e-949693322d74" alt=""><figcaption><p>Configure Forwarder</p></figcaption></figure>

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2Frq0U25GWNa5RmsE6dhej%2Fimage.png?alt=media&amp;token=ad09567e-1e64-4328-a5a3-206f4fa78264" alt=""><figcaption><p>Select Namespace</p></figcaption></figure>

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FabwJS7SCEQ0wsck5JYAR%2Fimage.png?alt=media&amp;token=ed5dcb48-471a-49e0-b8a7-6da8c5b6bbfa" alt=""><figcaption><p>Map Forwarder</p></figcaption></figure>

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FTRPhH3Eey0mokJIwNotr%2Fimage.png?alt=media&amp;token=eda09c03-5b22-4fca-b829-263e0fe5072c" alt=""><figcaption><p>Select Dynatrace Forwarder</p></figcaption></figure>

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FvH3FuFBv0nSsrDoaMrNp%2Fimage.png?alt=media&amp;token=51a21946-2a86-4ccf-a802-2bf5cb900769" alt=""><figcaption><p>Forwarder Mapped Successfully</p></figcaption></figure>
