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

# Get Service Logs

> Reference for merged 0.6.0 source. The latest verified binary release is 0.5.5; use your Engine’s /api/openapi.json for its installed contract.



## OpenAPI

````yaml /engine/openapi.json get /api/services/{ident}/logs
openapi: 3.1.0
info:
  title: nerditd
  version: 0.6.0
  description: >-
    Current source interface (0.6.0); verify your installed Engine version. This
    is not a claim that 0.6.0 is released.
servers:
  - url: http://127.0.0.1:9321
    description: Default local Engine; use your configured endpoint.
security: []
paths:
  /api/services/{ident}/logs:
    get:
      tags:
        - Services
      summary: Get Service Logs
      description: >-
        Reference for merged 0.6.0 source. The latest verified binary release is
        0.5.5; use your Engine’s /api/openapi.json for its installed contract.
      operationId: get_service_logs
      parameters:
        - name: ident
          in: path
          required: true
          schema:
            type: string
            title: Ident
        - name: since_id
          in: query
          required: false
          schema:
            type: integer
            default: 0
            title: Since Id
        - name: tail
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                maximum: 5000
                minimum: 1
              - type: 'null'
            title: Tail
        - name: grep
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Grep
        - name: since
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Since
        - name: source
          in: query
          required: false
          schema:
            enum:
              - all
              - build
              - runtime
            type: string
            default: all
            title: Source
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LogEntry'
                title: Response Get Service Logs
          description: HTTP 200 response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: HTTP 422 response
components:
  schemas:
    LogEntry:
      properties:
        id:
          type: integer
          title: Id
        stream:
          $ref: '#/components/schemas/LogStream'
        message:
          type: string
          title: Message
        timestamp:
          type: string
          format: date-time
          title: Timestamp
      type: object
      required:
        - id
        - stream
        - message
        - timestamp
      title: LogEntry
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LogStream:
      type: string
      enum:
        - stdout
        - stderr
        - system
        - build
        - crash
      title: LogStream
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````