Skip to content

Configuration

This page helps you build your file by sections, understand what each part does, then use a complete example at the end.

Your config.yaml should contain these top-level sections:

  • microsoft_authentication
  • output
  • collection_config

Use one of these authentication approaches.

microsoft_authentication:
microsoft_tenant_id: 'your_tenant_id'
microsoft_client_id: 'your_client_id'
microsoft_client_secret: 'your_client_secret'
microsoft_scope: 'https://graph.microsoft.com/.default'
microsoft_grant_type: 'client_credentials'
# cloud_deployment: 'global' # Options: global, us_gov_gcc_high, us_gov_dod, china

Enable only the destinations you need.

output:
dynatrace:
enabled: true
dynatrace_tenant_id: 'your_tenant_id'
dynatrace_api_token: 'your_token'

This section defines scheduling, logs, license path, and enabled features.

collection_config:
microsoft_max_call_duration_hours: 5
logfile_log_level: 'INFO'
license_file: '/absolute/path/to/license.lic'
interval_collection_minutes: 1
features:
ms_teams_calls_collection:
enabled: true
ms_teams_issues_collection:
enabled: true
ms_teams_pstn_calls_collection:
enabled: true
ms_teams_direct_routing_calls_collection:
enabled: true
ms_teams_site_definition:
enabled: false
ms_teams_autoattendant_collection:
enabled: false
ms_teams_callqueue_collection:
enabled: false

The optional advanced block exposes settings for non-standard network environments.

If the collector host sits behind a TLS-inspecting proxy or has a non-standard CA chain, certificate verification may fail for Microsoft Graph API calls — including report downloads that redirect through reportsncu.office.com. Set ca_bundle_path to the absolute path of your enterprise CA bundle in PEM format:

advanced:
ca_bundle_path: "/etc/ssl/certs/corporate-ca-bundle.pem"

This setting applies to:

  • All Microsoft Graph API calls
  • Report downloads (including the reportsncu.office.com redirect)
  • VAAC API calls

Download config.yaml or copy the template below:

microsoft_authentication:
microsoft_tenant_id: "your-tenant-id"
microsoft_client_id: "your-client-id"
microsoft_client_secret: "your-client-secret"
microsoft_grant_type: "client_credentials"
# cloud_deployment: "global" # Options: global, us_gov_gcc_high, us_gov_dod, china
output:
dynatrace:
dynatrace_tenant_id: "your-tenant-id"
dynatrace_api_token: "your-api-token"
enabled: true
splunk:
splunk_hec_url: "https://your-splunk-url:8088/services/collector/event"
splunk_hec_token: "your-hec-token"
splunk_ssl_check: false
enabled: false
console:
enabled: true
collection_config:
microsoft_max_call_duration_hours: 5
logfile_log_level: "INFO"
interval_collection_minutes: 5
license_file: '/absolute/path/to/your/license.lic'
features:
ms_teams_direct_routing_calls_collection:
enabled: true
ms_teams_calls_collection:
enabled: true
ms_teams_issues_collection:
enabled: false
ms_teams_pstn_calls_collection:
enabled: false
ms_teams_autoattendant_collection:
enabled: false
ms_teams_callqueue_collection:
enabled: false
ms_teams_site_definition:
enabled: false
# advanced:
# # Optional: path to a CA bundle PEM file.
# # Required when running behind a TLS-inspecting proxy or using a non-standard CA chain.
# # Applies to all Microsoft Graph API calls (incl. reportsncu.office.com) and VAAC API calls.
# ca_bundle_path: "/etc/ssl/certs/corporate-ca-bundle.pem"
  1. Check the binary and config path:

    Terminal window
    ./ms-teams-agent.bin --version
  2. Run one first cycle without historical state:

    Terminal window
    ./ms-teams-agent.bin --config ./conf/config.yaml --ignore_state
  3. Check logs and backend ingestion before enabling service mode.