Built-in Properties and Functions
Seq filters and queries can make use of system-provided functions and data.
Built-in Properties
All Seq events expose a set of built-in properties that are distinguished by the @
symbol in their name:
Property | Description | Example Contents | Usage |
---|---|---|---|
| An integer indicating the order in which the event arrived at the Seq server | 12344 |
|
| The full JSON document representing the event, as a string | { "Timestamp": ... } |
|
| A hash of the message template that was used to generate the event | 0x5432a8ff |
|
| The exception associated with the event if any, as a string | System.InvalidOp... |
|
| The event's unique id in Seq | event-d8ce...0000 |
|
| The logging level of the event, as a string | Warning |
|
| The text message associated with the event | Failed to open file... |
|
| The message template used to generate the event | Logged in {Username} |
|
| A dictionary with all properties associated with the event (Seq 3.1) |
|
|
| The UTC timestamp associated with the event | 2015-02-28T13:56:20.293Z |
|
Quick filter shortcuts
Many queries listed here are provided as one-click shortcuts via the row of blue links beneath the message text in an expanded log event -
Id
,Level
,Type
and so-on.
Functions
The built-in functions provide additional ways to work with structured data.
Function | Description | Usage |
---|---|---|
| Given an event id, evaluates to that event's arrival order. Used in conjunction with the |
|
| Searches within a text value for a pattern. In all text comparisons, the operand may use |
|
| Interprets the supplied text value as a date-time object. |
|
| Searches for a pattern at the end of a text value. In all text comparisons, the operand may use |
|
| Evaluates to |
|
| Searches within text, returning the zero-based index of the first occurrence. If the text expression is defined, but the pattern does not appear, the result is -1. In all text comparisons, the operand may use |
|
| Returns the length of a piece of text, in characters. |
|
| Round the specified number to a set precision. Seq uses "round away from zero" for midpoint values. |
|
| Searches for a pattern at the start of a text value. In all text comparisons, the operand may use |
|
| Return a portion of |
|
| Seq's internal date/time representation is numeric (.NET |
|
| Convert a string value into a number. |
|
| Given a property in .NET The argument may alternatively be an object returned by |
|
| Given a datetime and time zone offset in hours, return the time of day as a timespan value. Use in conjunction with |
|
| Given a structured property tagged with its original type ( |
|
Updated 28 days ago