The start() function assigns a timestamp to an output field specified by the as parameter. This timestamp represents the beginning of the search time interval in milliseconds since January 1, 1970 (UTC).

For live queries (where the search time interval is forever moving), start() equals the current time minus the search interval.

For subqueries in defineTable() or joins, start() equals the start time of the subquery's search interval.

Note

The start() function is not compatible with parser operations because parsers do not use search intervals.

ParameterTypeRequiredDefault ValueDescription
as[a]stringoptional[b] _start Name of output field.

[a] The parameter name as can be omitted.

[b] Optional parameters use their default value unless explicitly set.

Hide omitted argument names for this function

Show omitted argument names for this function

start() Syntax Examples

Assign s the value of start():

logscale
s := start()

Use start() in an assignment:

logscale
isOld := (@timestamp - start()) < 1000