Skip to content

Query Language (LCQL)

The Logtrail Custom Query Language (LCQL) allows you to perform powerful, high-performance searches across millions of log entries.

LCQL uses a “facet” system: column:operator:value.

OperatorNameDescription
=EqualsExact match (Case-insensitive for text).
!=Not EqualsExclude specific values.
~Partial MatchCase-insensitive match using Trigram indexing.
!~Not PartialExclude partial matches.
@Full-TextSearch across actions and messages.
>, <RangeUsed for timestamps.
level=error
id="0198aa31-..."
environment=production
action~"login*"
message@"database connection"

Access nested data in actor, target, context, or metadata using dot notation.

actor.email="user@example.com"
metadata.status_code=500
context.request_id!=null

Use commas to perform an “OR” search within a single field.

level=error,warn,fatal
tag=prod,critical

All results are automatically sorted by server_timestamp DESC (newest first), then by id DESC.