Assign the end of the search time interval to the field provided by parameter as.

The time is represented as milliseconds since January 1, 1970 (UTC). In live queries (where the search time interval is forever moving), end() is equivalent to now() — that is, the current time.

Note

The parser does not have a search interval; therefore, it does not make sense to use the end() query function here.

ParameterTypeRequiredDefaultDescription
asstringfalse_end [a]

[a] If an argument name is not given, as is the default argument.

end() Examples

Assign e the value of end:

logscale
e := end()

Use end() in an assignment:

logscale
isOld := (end()-@timestamp) > 1000