• Home
  • Dynatrace API
  • Environment
  • Log Monitoring v1
  • Custom devices
  • GET logs

Custom device logs API v1 - GET logs

Lists all the available logs on the specified custom device.

The request produces an application/json payload.

GETManaged https://{your-domain}/e/{your-environment-id}/api/v1/entity/infrastructure/custom-devices/{customDeviceId}/logs
SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/entity/infrastructure/custom-devices/{customDeviceId}/logs
Environment ActiveGate https://{your-activegate-domain}/e/{your-environment-id}/api/v1/entity/infrastructure/custom-devices/{customDeviceId}/logs

Authentication

To execute this request, you need an access token with Read logs (LogExport) scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
customDeviceIdstring

The Dynatrace entity ID of the required custom device.

pathrequired

Response

The result is a JSON, containing the array of objects, each representing a log.

  • For the default environment, the availableForAnalysis attribute is always set to true.
  • For upgraded Log Monitoring environments, the availableForAnalysis attribute is set to true when the stored log is ready for analysis.

Response codes

CodeTypeDescription
200LogListForCustomDeviceResult

Success

400ErrorEnvelope

Failed. See the response body for details

Response body objects

The LogListForCustomDeviceResult object

Logs available on the Custom Device.

ElementTypeDescription
logsLogForCustomDevice[]

The list of available logs.

Can be null.

The LogForCustomDevice object

The list of available logs.

ElementTypeDescription
pathstring

The full path to the log.

Can be null.

availableForAnalysisboolean

The log is available (true) or not available (false) for analysis.

Can be null.

Response body JSON model

json
{ "logs": [ { "path": "string", "availableForAnalysis": true } ] }
Related topics
  • Log Monitoring

    Learn how to enable Log Monitoring, the insights that Log Monitoring can provide, and more.