Custom device Log Monitoring API - POST analysis job

Starts the log analysis job.

Optionally, you can indicate a start and end time stamp or query to filter log content.

The request produces an application/json payload.

  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/entity/infrastructure/custom-devices/{customDeviceId}/logs/{logPath}
  • SaaS https://{your-environment-id}{customDeviceId}/logs/{logPath}


All special characters in the log path must be escaped.

Parameter Type Description In Required
customDeviceId string

The entity ID of the required Custom Device.

path required
logPath string

The full pathname of the log.

path required
query string

Narrows down the scope of the analysis to the entries, matching the specified criteria.

The criteria must use the Dynatrace search query language syntax.

query optional
startTimestamp integer

The start timestamp of the analysis range, in UTC milliseconds.

If not set, then 2 hours behind from now is used.

query optional
endTimestamp integer

The end timestamp of the analysis range, in UTC milliseconds.

If not set, then the current timestamp is used.

query optional
body ParsingDefinition

Parsing definition to specify other parsing criteria.

body optional

The ParsingDefinition object

Element Type Description Required
parsingMode string

Parsing mode for log analysis entries presentation. Available parsing modes: [json, disabled, all]

customParsingFields CustomParsingField[]

Custom parsing fields.

customParsingPatterns string

Custom parsing patterns.


The CustomParsingField object

Element Type Description Required
name string

Custom field name.

valueType string

Custom field type. Available field types: [string, integer, long, float, boolean]

contentPrefix string

Content prefix.

contentSuffix string

Content suffix.


Response format

Element Type Description
jobId string The ID of the started job.

Response codes

Code Description
202 Success. The response body contains the ID of the job.
400 Failed. See the response body for details.
404 Not found. See the response body for details.