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
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
Field name specifying message timestamp.
timestamp
tls
Specify to use TLS.
on
tls.verify
TLS verification.
on
Get started
To get started with sending logs to Dynatrace:
Get a Dynatrace API token with the
logs.ingest(Ingest Logs) scope.Determine your Dynatrace environment ID.
In your main Fluent Bit configuration file, append the following
Outputsection:
pipeline:
  outputs:
    - name: http
      match: '*'
      header:
        - 'Content-Type application/json; charset=utf-8'
        - '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[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   OnReferences
Last updated
Was this helpful?