How do I fetch the list of log files?

You can fetch the log-file list based on either host ID (all operating system logs of the provided host) or process group (all log files associated with a specific process group).

GET log list

A call to the entity/infrastructure/hosts/<hostId>/logs endpoint returns the list of operating system log files on the specified host.

  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/entity/infrastructure/hosts/<hostId>/logs
  • SaaS https://{your-environment-id}<hostId>/logs

A call to the entity/infrastructure/process-groups/<pgId>/logs endpoint returns a list of logs of the indicated process group.

  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/entity/infrastructure/process-groups/<pgId>/logs
  • SaaS https://{your-environment-id}<pgId>/logs

Once you execute the call, the following status codes indicate the success or failure of the call:

  • 200 - OK
    • Successful execution of the call
  • 400 - Bad Request
    • Wrong hostId or pgId parameter (provided hostId or pgId is invalid)
  • 404 - Not Found
    • Provided hostId or pgId was not found.