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

# Stream-Monitor-Agent-Logs

> Zeigt CloudWatch-Logs für den Monitor-Agent an, gefiltert nach dieser monitor_id. Erfordert ?stream=1 oder Accept: text/event-stream.



## OpenAPI

````yaml de/openapi/monitors.json GET /v1/monitors/{monitor_id}/agent-logs
openapi: 3.0.3
info:
  title: Monitore API
  version: 1.0.0
servers:
  - url: https://api.olostep.com
security: []
paths:
  /v1/monitors/{monitor_id}/agent-logs:
    get:
      summary: Monitor-Agenten-Logs streamen
      description: >-
        Zeigt CloudWatch-Logs für den Schattenagenten des Monitors an, gefiltert
        auf Zeilen, die diese `monitor_id` erwähnen. Erfordert `?stream=1` oder
        `Accept: text/event-stream`.
      parameters:
        - name: monitor_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^monitor_
        - name: stream
          in: query
          required: true
          schema:
            type: string
            enum:
              - '1'
              - 'true'
        - name: since
          in: query
          schema:
            type: integer
          description: 'Startzeitstempel in Millisekunden (Standard: vor 30 Minuten).'
      responses:
        '200':
          description: SSE-Stream mit `ready`, `log`, `heartbeat` und `error` Ereignissen.
          content:
            text/event-stream:
              schema:
                type: string
        '400':
          description: Ungültige monitor_id oder fehlender stream-Parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Ungültiger API-Schlüssel.
        '404':
          description: Monitor nicht gefunden.
        '500':
          description: Interner Serverfehler.
      security:
        - Authorization: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        monitor_id:
          type: string
          description: Vorhanden bei einigen Erstellungs-/Aktualisierungsfehlerantworten.
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: >-
        Bearer-Authentifizierungsheader in der Form Bearer <token>, wobei
        <token> dein Authentifizierungstoken ist.

````