---
title: "Export log lines"
method: GET
path: "/v2/export"
tags: ["Export"]
---

# Export log lines

`GET /v2/export`

Use this method to export logs in JSON format from a logging instance.

## Query parameters

- `from` string, required
- `to` string, required
- `size` string
- `hosts` string
- `apps` string
- `levels` string
- `query` string
- `prefer` string
- `pagination_id` string

## Response `200`

OK

- object

## Other responses

- `400` — Bad request

---

[API](https://skmtc.net/mezmo/apis/pipeline-api.md) · [All operations](https://skmtc.net/mezmo/apis/pipeline-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mezmo/pipeline-api/revisions/fb2535545d90/schema)
