---
title: "Fetch Elastilogs"
method: GET
path: "/ocean/azure/np/cluster/{oceanClusterId}/log"
tags: ["Ocean AKS"]
---

# Fetch Elastilogs

`GET /ocean/azure/np/cluster/{oceanClusterId}/log`

## Request

- Base URL: `https://api.spotinst.io`
- URL: `https://api.spotinst.io/ocean/azure/np/cluster/{oceanClusterId}/log`
- Auth: HTTP bearer

Fetch the log of an Ocean cluster.

## Parameters

- `#/paths/~1ocean~1aws~1ecs~1cluster~1%7BoceanClusterId%7D/get/parameters/1` (unresolved $ref)
- `#/paths/~1azure~1costs/get/parameters/0` (unresolved $ref)
- `#/paths/~1mcs~1ecs~1cluster~1%7BclusterName%7D~1costs/get/parameters/2` (unresolved $ref)
- `#/paths/~1mcs~1ecs~1cluster~1%7BclusterName%7D~1costs/get/parameters/1` (unresolved $ref)
- `#/paths/~1ocean~1aws~1ecs~1cluster~1%7BoceanClusterId%7D~1log/get/parameters/4` (unresolved $ref)
- `#/paths/~1ocean~1aws~1ecs~1cluster~1%7BoceanClusterId%7D~1log/get/parameters/5` (unresolved $ref)
- `#/paths/~1ocean~1aws~1ecs~1cluster~1%7BoceanClusterId%7D~1log/get/parameters/6` (unresolved $ref)

## Response `200`

Ocean Get Log Response

- object
  - `request` object: Original request properties
    - `id` string: Unique identifier associated with this request
    - `url` string: The URL that was used for the request
    - `method` string: The HTTP **METHOD** used for the request
    - `timestamp` string: When the request was received by Spot
  - `response` object: Response payload that includes status, type, and any relevant data.
    - `status` object
      - `code` integer: HTTP status code assigned to this response.
      - `message` string: HTTP status message for the respective status code.
    - `kind` string
    - `items` object[]: Array of data objects
      - `message` string
      - `severity` string
      - `createdAt` string
    - `count` integer

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/spot/apis/spot-by-flexera-api.md) - [All operations](https://skmtc.dev/spot/apis/spot-by-flexera-api/llms.txt) - [OpenAPI document](https://skmtc.dev/spot/apis/spot-by-flexera-api/revisions/f7e206fa6474?raw)
