You can limit an import so that it only uses certain files according to a specified date pattern.
Choose one of the following options. Each option is described in detail in the sections that follow.
Define a pattern as a placeholder for the current date in file paths
Under the Basic section you must define a path for the import. Instead of using a static string, a file path can contain patterns which are later replaced by values corresponding to the current date.
Allowed patterns are: %year%, %month%, %day%, %hour% or %min%
The path containing the current date is displayed below the path containing variables.
This example imports all .log files from /myfolder/2011/08/ (and changes according to the current date).
Define a time range to apply to file names using either fixed dates or expressions
You can define a time range by using specific dates. In addition, you can define ranges using a "from" and "to" date.
Using fixed dates
The start and end dates are date + time strings chosen with a drop-down calendar.
Start Date: 2011-05-01 00:00:00
End Date: 2011-07-31 00:00:00
This pattern will import files with names that match:
Instead of entering a fixed date string, you can also define a dynamic range using formulas which return a date. Formulas can use constants in their calculations, such as d (=days), h (=hours), m (=min). This provides more flexibility when using dates that slide with respect to the current date.
Start Date: NOW()-2d
End Date: NOW()
This example will import the following files today (04 Aug 2011):
And tomorrow (05 Aug 2011) it will import:
Define a time range using the date the file was last modified
You can exclude files newer or older than x where x is a number of days relative to today.
This filter is based on the file modification date, usually the time the file was last modified (or created).