> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aieev.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 로그 파일 내용 조회



## OpenAPI

````yaml openapi-ko.json GET /endpoints/{endpoint_id}/logs/file
openapi: 3.1.0
info:
  title: AirCloud External API
  description: AirCloud 엔드포인트를 프로그래밍 방식으로 관리하는 REST API입니다.
  version: 1.0.0
  contact:
    name: support
    url: https://aieev.com
    email: support@aieev.cloud
servers:
  - url: https://external.aieev.cloud:5007/external/api/v1
security:
  - bearerAuth: []
tags:
  - name: Authentication
    description: API Key 인증 정보 확인
  - name: Endpoints
    description: '엔드포인트 관리: 조회, 시작, 중지, 스케일링, 설정 변경'
  - name: Replicas
    description: 레플리카 상태 조회
  - name: Logs
    description: 엔드포인트 로그 조회
paths:
  /endpoints/{endpoint_id}/logs/file:
    get:
      tags:
        - Logs
      summary: 로그 파일 내용 조회
      description: 특정 로그 파일의 실제 내용을 라인 범위로 조회합니다.
      operationId: getLogFileContent
      parameters:
        - name: endpoint_id
          in: path
          required: true
          description: 엔드포인트 고유 ID
          schema:
            type: string
        - name: node_id
          in: query
          required: true
          description: 로그 파일이 위치한 노드 ID. `/logs` 응답의 `node_id` 값 사용
          schema:
            type: string
        - name: filename
          in: query
          required: true
          description: 로그 파일 경로. `/logs` 응답의 `filename` 값 사용
          schema:
            type: string
        - name: start_line
          in: query
          description: 읽기 시작할 라인 번호. 1부터 시작
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: end_line
          in: query
          description: 읽기 종료할 라인 번호. 최대 50000
          schema:
            type: integer
            minimum: 1
            maximum: 50000
            default: 1000
      responses:
        '200':
          description: 로그 파일 내용
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogContent'
components:
  schemas:
    LogContent:
      type: object
      properties:
        content:
          type: string
          description: 로그 파일 내용 (지정된 라인 범위). 각 줄은 JSON 형식의 로그 엔트리
        start_line:
          type: integer
          description: 실제 반환된 시작 라인 번호
        end_line:
          type: integer
          description: 실제 반환된 종료 라인 번호
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API Key를 Bearer 토큰으로 전달합니다. 프로젝트 개요의 API 키 메뉴에서 생성할 수 있습니다.

````