Dynatrace

Send logs to Dynatrace

Stream logs to Dynatrace by utilizing the http plugin to send data to the Dynatrace generic log ingest API.

Configuration parameters

Key
Description
Default

header

The specific header for content-type.

Content-Type application/json; charset=utf-8

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}

allow_duplicated_headers

Specifies duplicated header use.

false

host

Your Dynatrace environment hostname where {your-environment-id} is your environment ID.

{your-environment-id}.live.dynatrace.com

port

TCP port of your Dynatrace host.

443

uri

Specify the HTTP URI for Dynatrace log ingest API.

/api/v2/logs/ingest

format

The data format to be used in the HTTP request body.

json

json_date_format

Date format standard for JSON.

iso8601

json_date_key

Fieldname specifying message timestamp.

timestamp

tls

Specify to use TLS.

on

tls.verify

TLS verification.

on

Getting started

To get started with sending logs to Dynatrace:

  1. Get a Dynatrace API token with the logs.ingest (Ingest Logs) scope.

  2. Determine your Dynatrace environment ID.

  3. In your main Fluent Bit configuration file, append the following Output section:

    [OUTPUT]
        name         http
        match        *
        header       Content-Type application/json; charset=utf-8
        header       Authorization Api-Token {your-API-token-here}
        allow_duplicated_headers false
        host         {your-environment-id}.live.dynatrace.com
        Port         443
        URI          /api/v2/logs/ingest
        Format       json
        json_date_format iso8601
        json_date_key timestamp
        tls          On
        tls.verify   On

References

Last updated