on
24 Sep 2025
02:40 PM
- edited on
29 Sep 2025
10:26 AM
by
Michal_Gebacki
This guide covers how to push custom logs to Dynatrace using the Log Monitoring API (POST /logs/ingest
). It applies to both SaaS environments and ActiveGate deployments with the Log Analytics Collector module enabled.
https://{environmentid}.live.dynatrace.com/api/v2/logs/ingest
https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/logs/ingest
logs.ingest
scope.Authorization: Api-Token {your-token}
Content-Type
: Must be one of:
text/plain
application/json
application/jsonl
application/x-ndjson
content
, timestamp
, and severity
.overwritten1
, etc.).200 OK
: Success (some logs may be dropped)204 No Content
: Success400 Bad Request
: Check payload structure401 Unauthorized
: The token is invalid402 Payment Required
: Failed. This is due either to the status of your licensing agreement or because you've exhausted your DPS license.403 Forbidden
: The token lacks the proper permissions404 Not Found
: Failed. The requested resource doesn't exist. This may happen when no ActiveGate is available with the Log Analytics Collector module enabled.413 Payload Too Large
: Reduce payload size429 Too Many Requests
: Apply exponential backoff503 Service Unavailable
: Retry laterhost.name
, http.status_code
, dt.entity.service
for enhanced querying.Please refer to the following documentation pages:
If this article did not help, please open a support ticket, mention that this article was used and provide the following information: