time
Synopsis
Displays the time between the first and last event in a group.
Syntax
time
Required Arguments
None
Optional Arguments
Date_Column_Name
Syntax:Â <character string>
Description:Â The name of a specific log column which contains a date/timestamp.
Date_Column_Format
Syntax:Â <character string>
Description: The date format of the column Date_Column_Name.
Description
Shows the unformatted amount of time between the first and last event in a group - calculated by default based on the log event's main date field. Should be formatted and displayed in time format.
Note: The default time is counted in milliseconds.
Examples
Example 1:Â Â
* in log.access | time | display time in time format
Displays the time between the first and last event in log access in time format.
Example 2:Â Â
10.10.10.10 in log.access | time | display time in time format
Displays the time between the first and last event with client IP 10.10.10.10 in log access in time format.
Example 3:Â Â
* in log.access | time originalTimeStamp ("MM/dd/yyyy HH:mm:ss.SSS") | display time in time format
Displays the time between the first and last event in log access based on the values of the specified log column originalTimeStamp (not the event's main date field) which has the specified date format "MM/dd/yyyy HH:mm:ss.SSS" in time format.
Â