|
| 1 | +# Dynatrace |
| 2 | + |
| 3 | +Output your data to [Dynatrace](https://www.dynatrace.com) by utilizing the **http** plugin to send data to Dynatrace [generic log ingest API](https://www.dynatrace.com/support/help/observe-and-explore/logs/log-monitoring/acquire-log-data/log-data-ingest). |
| 4 | + |
| 5 | +Before starting you need to get a Dynatrace API token with the `logs.ingest` (Ingest Logs) scope. Then configure **http** output pluginwith the following HTTP parameters. |
| 6 | + |
| 7 | +## Configuration Parameters |
| 8 | + |
| 9 | +| Key | Description | default | |
| 10 | +| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- | |
| 11 | +| header | The specific header for content-type | Content-Type application/json; charset=utf-8 | |
| 12 | +| header | The specific header for authorization token, where {your-API-token-here} is the Dynatrace API token with log ingest scope | Authorization Api-Token {your-API-token-here} | |
| 13 | +| Allow_Duplicated_Headers | Specifies duplicated header use | false | |
| 14 | +| host | Your Dynatrace environment hostname where {your-environment-id} is your environment ID. | {your-environment-id}.live.dynatrace.com | |
| 15 | +| port | TCP port of your Dynatrace host | 443 | |
| 16 | +| uri | Specify the HTTP URI for Dynatrace log ingest API | /api/v2/logs/ingest | |
| 17 | +| format | The data format to be used in the HTTP request body | json | |
| 18 | +| json_date_format | Date format standard for JSON | iso8601 | |
| 19 | +| json_date_key | Fieldname specifying message timestamp | timestamp | |
| 20 | +| tls | Specify to use TLS | on | |
| 21 | +| tls.verify | TLS verification | off | |
| 22 | + |
| 23 | +### Configuration File |
| 24 | + |
| 25 | +In your main configuration file, append the following _Output_ section: |
| 26 | + |
| 27 | +```text |
| 28 | +[OUTPUT] |
| 29 | + name http |
| 30 | + match * |
| 31 | + header Content-Type application/json; charset=utf-8 |
| 32 | + header Authorization Api-Token {your-API-token-here} |
| 33 | + allow_duplicated_headers false |
| 34 | + host {your-environment-id}.live.dynatrace.com |
| 35 | + Port 443 |
| 36 | + URI /api/v2/logs/ingest |
| 37 | + Format json |
| 38 | + json_date_format iso8601 |
| 39 | + json_date_key timestamp |
| 40 | + tls On |
| 41 | + tls.verify Off |
| 42 | +``` |
| 43 | + |
| 44 | + |
| 45 | +See more [how Fluent Bit integrates with Dynatrace here](https://www.dynatrace.com/hub/detail/fluent-bit/?filter=log-management-and-analytics) and [Dynatrace Fluent Bit documentation](https://docs.dynatrace.com/docs/shortlink/lma-stream-logs-with-fluent-bit). |
0 commit comments