v1

latestOpenAPI 3.1.02026-07-26189891.1 MB
Export

Export log lines

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

get/v1/export

Query parameters

fromstring required

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

tostring required

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

sizestring

Number of log lines to include in the export.

hostsstring

Comma-separated list of hosts.

appsstring

Comma-separated list of applications.

levelsstring

Comma-separated list of log levels.

querystring

Search query.

preferstring

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.

emailstring

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

emailSubjectstring

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

Response

OK

object required