---
title: "Advanced search with LogQL"
method: POST
path: "/api/v1/k8s/logs/search"
tags: ["Logs"]
---

# Advanced search with LogQL

`POST /api/v1/k8s/logs/search`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/k8s/logs/search`
- Auth: none declared

Search logs using LogQL query syntax

## Request body

- K8sLogsLogQLQuery
  - `direction` string: forward/backward
  - `end` string: End time
  - `labels` object: Additional label filters
  - `limit` integer: Result limit
  - `query` string: LogQL query: {app="web"} |= "error"
  - `start` string: Start time
  - `step` string: Step for aggregations

## Response `200`

OK

- object

---

[API](https://skmtc.dev/nife/apis/nife-io-swagger-api.md) - [All operations](https://skmtc.dev/nife/apis/nife-io-swagger-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nife/apis/nife-io-swagger-api/revisions/6e868dc62795?raw)
