Skip to main content
GET
/
v1
/
export
Export log lines
curl --request GET \
  --url https://api.mezmo.com/v1/export \
  --header 'Authorization: <api-key>'
{}

Documentation Index

Fetch the complete documentation index at: https://mezmo-9a59581a-mintlify-926f893d.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

This key is used for all apis with the exception of ingest. You can obtain it following these instructions and placing the key in the header of your call in the format of Authorization: Token {accesstoken} For example:

curl -H 'Authorization: Token <ACCESS TOKEN>'

Query Parameters

from
string
required

Start time. Set as UNIX timestamp in seconds or milliseconds.

to
string
required

End time. Set as UNIX timestamp in seconds or milliseconds.

size
string

Number of log lines to include in the export.

hosts
string

Comma-separated list of hosts.

apps
string

Comma-separated list of applications.

levels
string

Comma-separated list of log levels.

query
string

Search query.

prefer
string

Defines the log lines that you want to export. Valid values are head, first log lines, and tail, last log lines. If not specified, defaults to tail.

email
string

Specifies the email with the downloadable link of your export. By default, the log lines are streamed.

emailSubject
string

Use to set the subject of the email. Use to represent a space. For example, a sample value is Export logs.

Response

OK

{key}
object