# This is a date_filter plug-in. # START is the beginning of the unit containing the second N units before end the of the log data; # END is the beginning of the unit containing the second N units before end the of the log data; n_units = { label = "unit" usage = "N units" regular_expression = "^([0-9]+) ?(year|y|quarter|q|month|m|week|w|day|d|hour|minute|second)s?$" rewrite = ' v.is_relative_date_filter = true; int units = $1 - 1; "start of $2 " . units . " $2 before end of data-end of $2 0 $2 before end of data" ' }