Skip to content

Connect the Collector to Dynatrace

Add a dynatrace entry under the output section of your config.yaml:

output:
dynatrace:
enabled: true
dynatrace_tenant_id: "your-dynatrace-tenant-id"
dynatrace_api_token: "your-logs-ingest-token"
ParameterRequiredDescription
enabledYesSet to true to activate the Dynatrace output
dynatrace_tenant_idYesYour Dynatrace SaaS tenant ID (e.g. abc12345)
dynatrace_api_tokenYesAPI token with logs.ingest scope

You can configure the timestamp format for log records sent to Dynatrace:

output:
dynatrace:
enabled: true
dynatrace_tenant_id: "your-tenant-id"
dynatrace_api_token: "your-token"
time_fields_format: "iso8601"

Supported values: epoch_ms (default), epoch_s, epoch_ns, iso8601, rfc3339.

After editing the configuration, run one first cycle:

Terminal window
./ms-teams-agent.bin --config ./conf/config.yaml --ignore_state

Then check collector logs to confirm Graph authentication and Dynatrace export are successful.

After a successful first collection cycle:

  1. In Dynatrace, open Logs and filter by log.source = "MSTeams_CallRecords_CallMetadata".
  2. Confirm records are arriving in the ms_teams bucket.
  3. Open the MS Teams Observability app — the Overview page should show live data.

If data is not arriving, see Troubleshooting.