---
title: "Fetch logs with optional filtering"
method: GET
path: "/logs"
---

# Fetch logs with optional filtering

`GET /logs`

Fetch the latest logs from the system with optional filtering by number of lines, log level, or keyword.

## Query parameters

- `lines` string
- `level` string
- `keyword` string

## Response `200`

Logs fetched successfully

- Logs
  - `logs` string[] — List of filtered logs.

## Other responses

- `400` — Invalid query parameters
- `500` — Internal server error

---

[API](https://skmtc.net/loxilb-io/apis/loxilb-rest-api.md) · [All operations](https://skmtc.net/loxilb-io/apis/loxilb-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/loxilb-io/loxilb-rest-api/versions/45e9f0a95af0/schema)
