Filter Logs

Returns the first page of Logs associated with the specified account.

Learn more about using Performance Query Language (PQL)

The Performance Query Language, or PQL, is a simple query language that uses key-comparator-value triplets joined by boolean operators to build queries capable of searching through logs. PQL is inspired heavily by the syntax of SQL's WHERE clauses.

timestamp >= 149997094500000 AND (level="error" OR level="warning") AND metadata.test = "test value"

The Dot Operator (.) can be used to search for nested key / value pairs. In the example above, metadata.test is used to access the value of the nested test key under metadata.

PQL supports the following comparator operators: =, !=, <, &lt;=, >, &gt;=, as well as the use of () to indicate the order in which parts are evaluated.

Path Params
string
required

ID of the account that this log was generated under.

Body Params
string
required

The filter query for retrieving logs. See Learn more about using Performance Query Language (PQL) above.

Response

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json