Overview
This entry explains how to configure an ETL workflow in Repertoire 202x to identify recently modified repository files and export their details to CSV.
The workflow captures the current timestamp, calculates the beginning of the search period, then reads the repository directory recursively. It retains files modified within the specified period, prepares their metadata, then exports the results with the most recently modified files listed first.
The example uses a seven-day lookback period. This value can be changed to suit the reporting requirement.
Prerequisites
Before configuring the ETL, ensure that the repository directory exists. Configure the permitted directories in etc/application.conf under the Repertoire Server installation.
A) Configure File Reading
Locate the elixir.data.file block. Include the repository directory in its readable list:
elixir.data.file {
# Only files within these directories (and sub directories) are readable and writable by the File Steps.
# You could use "/" or "C:/" or equivalent to allow access to all files and folders, but restricting the
# scope to certain folders is preferred. Relative paths are relative to the installation root folder
readable: ["./data/in", "./data/out", "./repository"]
writable: ["./data/out"]
}
The readable setting permits Directory Reader to access the listed directories and their subfolders.
Relative paths resolve from the server installation root. For example, if Repertoire Server is installed at:
C:/Elixir/Repertoire-202x
The permitted location ./repository refers to:
C:/Elixir/Repertoire-202x/repository
If the repository is located elsewhere, add its absolute path to the readable list.
B) Configure CSV Writing
Locate the elixir.data.csv block. Ensure that its writable list includes the export directory:
elixir.data.csv {
readable: ["./data/in", "./data/out"]
writable: ["./data/out"]
}
CSV File Writer uses elixir.data.csv.writable. The writable setting under elixir.data.file applies to File steps.
Preserve any locations required by existing workflows. Save the configuration. You are required to restart Repertoire 202x Server to load the changes.
Step 1: Create the ETL Chain
In ETL Management, create a chainset named Export List of Recently Modified Repository Files to CSV. Navigate to ETL Designer. Create or select the Main chain.
Configuration:
- Chainset Name:
Export List of Recently Modified Repository Files to CSV - Chain Name:
Main
Explanation:
The Main chain contains the timestamp calculation, directory reading, filtering, and CSV export steps.
Add the following steps in the order shown. Run Main to execute the complete workflow.
Step 2: JSON Record
Add a JSON Record step. Name the step Set Repository Search Settings.
Configuration:
- Merge Order: Keep only this
- JSON:
{
"RepositoryRoot": "C:/Elixir/Repertoire-202x/repository",
"LookBackDays": 7
}
Explanation:
Keep only this: Outputs the configured JSON record rather than merging it with incoming fields.
RepositoryRoot: Identifies the directory to scan.
LookBackDays: Defines the search period.
This step supplies the configuration record. It does not list the files yet.
Note: Replace the example directory with the actual repository location. Use forward slashes with no trailing slash.
Step 3: Now
Add a Now step from the Timestamp category. Name the step Capture Run Timestamp.
Configuration:
To Field: RunTimestamp
Explanation:
Capture the current timestamp before the directory scan begins.
This step operates on the single configuration record. The captured timestamp is subsequently retained on each file record, so all files are evaluated against the same search period.
Step 4: Change Field Type
Add a Change Field Type step. Name the step Convert Run Timestamp to Int64.
Configuration:
- Convert Field:
RunTimestamp - To:
Int64
Explanation:
Convert the captured Date-Time value to a Unix epoch timestamp expressed in milliseconds.
The subsequent arithmetic steps require a numeric value. Use Int64 because epoch-millisecond timestamps exceed the capacity of Int32.
Step 5: Change Field Type
Add a Change Field Type step. Name the step Convert Lookback Days to Int64.
Configuration:
- Convert Field:
LookBackDays - To:
Int64
Explanation:
Convert the number of days to the numeric type used by the long-integer calculation.
Configure LookBackDays as a positive whole number, such as 7, 14, or 30.
Step 6: Long Integer Multiply
Add a Long Integer Multiply step. Name the step Calculate Lookback Milliseconds.
Configuration:
- Field:
LookBackDays - Value:
86400000 - Output:
LookBackMs
Explanation:
Convert the lookback period from days to milliseconds:
LookBackMs = LookBackDays × 86400000
One day contains:
24 × 60 × 60 × 1000 = 86400000 milliseconds
For seven days:
7 × 86400000 = 604800000 milliseconds
Long Integer Multiply supports periods whose millisecond values exceed the Int32 limit.
Step 7: Long Integer Subtract Field
Add a Long Integer Subtract Field step. Name the step Calculate Cutoff Timestamp.
Configuration:
- Field 1:
RunTimestamp - Field 2:
LookBackMs - Output:
CutoffTimestamp
Explanation:
Subtract the lookback duration from the captured run timestamp:
CutoffTimestamp = RunTimestamp − LookBackMs
Example:
RunTimestamp: 2026-10-07 15:00:00 +08:00
LookBackDays: 7
CutoffTimestamp: 2026-09-30 15:00:00 +08:00
The cutoff defines the earliest modification timestamp to include.
Note: Keep the fields in the specified order. Reversing the subtraction produces an incorrect cutoff.
Step 8: Change Field Type
Add a Change Field Type step. Name the step Restore Run Timestamp to Date-Time.
Configuration:
- Convert Field:
RunTimestamp - To:
Date-Time
Explanation:
Restore the run timestamp to Date-Time after completing the numeric calculation.
Directory Reader supplies the file modification timestamp as Date-Time. Using the same type allows the comparison steps to evaluate the timestamps consistently.
Step 9: Change Field Type
Add a Change Field Type step. Name the step Convert Cutoff Timestamp to Date-Time.
Configuration:
- Convert Field:
CutoffTimestamp - To:
Date-Time
Explanation:
Convert the calculated cutoff from epoch milliseconds to Date-Time.
Both search boundaries are now ready for comparison with the file modification timestamp.
Step 10: Directory Reader
Add a Directory Reader step. Name the step List Repository Files Recursively.
Configuration:
- Directory Field:
RepositoryRoot - Recursive: Enabled
Explanation:
Read files from the configured repository directory, including its subfolders.
Enter RepositoryRoot in Directory Field. This identifies the incoming field containing the directory path.
The reader creates one record per file. It retains the search settings and adds metadata such as:
| Field | Description |
|---|---|
file |
Absolute file path. |
fileName |
Filename, including its extension. |
fileLength |
File size in bytes. |
fileLastModified |
Last-modified timestamp as Date-Time. |
Inspect these fields in the Results panel before continuing.
Step 11: More Than Or Equal Field
Add a More Than Or Equal Field step. Name the step Check Cutoff Boundary.
Configuration:
- First Field:
fileLastModified - Second Field:
CutoffTimestamp - Result Field:
WithinLookback
Explanation:
fileLastModified >= CutoffTimestamp
The result is true if the file was modified on or after the cutoff.
This step adds a Boolean result field. It does not remove records.
Step 12: Boolean Filter
Add a Boolean Filter step. Name the step Keep Files Within Lookback.
Configuration:
- Field:
WithinLookback - Keep If: true
Explanation:
Retain records where WithinLookback is true.
Files with modification timestamps earlier than the cutoff are removed from the ETL output.
Step 13: Less Than Or Equal Field
Add a Less Than Or Equal Field step. Name the step Check Run Timestamp Boundary.
Configuration:
- First Field:
fileLastModified - Second Field:
RunTimestamp - Result Field:
NotFutureDated
Explanation:
Evaluate:
fileLastModified <= RunTimestamp
The result is true if the file modification timestamp is on or before the captured run timestamp.
This upper boundary excludes future-dated timestamps. It also excludes files modified during the scan after the run timestamp was captured.
Step 14: Boolean Filter
Add a Boolean Filter step. Name the step Exclude Future-Dated Files.
Configuration:
- Field:
NotFutureDated - Keep If: true
Explanation:
Retain records where NotFutureDated is true.
The remaining records satisfy both search boundaries:
CutoffTimestamp <= fileLastModified <= RunTimestamp
Only these files proceed to the output preparation steps.
Step 15: Restructure
Add a Restructure step. Name the step Create Readable Inventory Columns.
Configuration:
- Specification:
{
"RelativePath": "$file",
"FullPath": "$file",
"FileName": "$fileName",
"Extension": "$fileName",
"SizeBytes": "$fileLength",
"LastModified": "$fileLastModified"
}
Explanation:
Map the reader’s metadata to readable inventory fields. Values beginning with $ reference incoming fields.
RelativePath is a working copy used to derive the folder location.
FullPath retains the absolute file path.
Extension initially contains the filename. A later transformation extracts its extension.
LastModified remains Date-Time so that it can be sorted chronologically.
The specification also removes the search settings and comparison fields from the records.
Step 16: String Remove Prefix
Add a String Remove Prefix step. Name the step Remove Repository Prefix.
Configuration:
- Field:
RelativePath - Value:
C:/Elixir/Repertoire-202x/repository
Explanation:
Remove the repository root from the working file path:
Before: C:/Elixir/Repertoire-202x/repository/Finance/Reports/Sales.rml
After: /Finance/Reports/Sales.rml
The prefix must match the RepositoryRoot value configured in Step 2.
FullPath continues to hold the original absolute path.
Step 17: Add Fields
Add an Add Fields step. Name the step Create Relative Folder Path.
Configuration:
- Fields:
{
"FolderPath": "$RelativePath"
}
Explanation:
Copy the relative file path into FolderPath.
This field will hold the file’s parent-folder location after the filename is removed.
Step 18: String Replace RegEx
Add a String Replace RegEx step. Name the step Remove Filename from Folder Path.
Configuration:
- Field:
FolderPath - Regular Expression:
/[^/]+$ - Value: Leave blank
Explanation:
Remove the final slash followed by the filename:
Before: /Finance/Reports/Sales.rml
After: /Finance/Reports
The full relative folder hierarchy is retained.
For files directly under the repository root, the resulting value is empty.
Step 19: String Replace RegEx
Add a String Replace RegEx step. Name the step Label Repository Root Folder.
Configuration:
- Field:
FolderPath - Regular Expression:
^$ - Value:
/
Explanation:
Replace an empty folder value with /.
This identifies files located directly under the repository root.
Step 20: String Replace RegEx
Add a String Replace RegEx step. Name the step Extract File Extension.
Configuration:
- Field:
Extension - Regular Expression:
^(?:.+\.([^.]+)|.*)$ - Value:
$1
Explanation:
Extract the final extension without its dot.
Examples:
Sales.RML → RML
archive.tar.gz → gz
Readme → blank
Enter a single backslash before the dot in the ETL configuration field. The downloadable JSON chainset uses an escaped backslash as required by JSON.
Step 21: String Lower
Add a String Lower step. Name the step Normalize Extension Case.
Configuration:
- Field:
Extension
Explanation:
Convert extensions to lowercase for consistent output.
For example:
RML → rml
DS → ds
The original filename remains unchanged.
Step 22: Small Sort
Add a Small Sort step. Name the step Sort Newest Files First.
Configuration:
- Field:
LastModified - Descending: Enabled
Explanation:
Sort the matching files by modification timestamp, newest first.
LastModified is still Date-Time at this stage. Sorting before formatting ensures that the records are ordered by their actual timestamps.
Note: Small Sort holds the records in memory. Consider the number of matching files when using this workflow with large repositories.
Step 23: Local Formatted String
Add a Local Formatted String step. Name the step Format Last Modified Timestamp.
Configuration:
- From Field:
LastModified - Format:
uuuu-MM-dd HH:mm:ss XXX - Locale:
en - To Field:
LastModified
Explanation:
Format the timestamp for readability:
2026-10-07 15:00:00 +08:00
The format components represent:
uuuu-MM-dd = Year, month, and day
HH:mm:ss = Time using the 24-hour clock
XXX = UTC offset, such as +08:00
The timestamp is displayed in the server’s local time zone.
Keep this step after filtering and sorting. Those operations require the original Date-Time values.
Step 24: CSV File Writer
Add a CSV File Writer step. Name the step Export Recently Modified Files CSV.
Configuration:
- Write Header: Enabled
- Columns: Enter one field per line:
FolderPath
FileName
Extension
SizeBytes
LastModified
FullPath
Additional configuration:
- Separator:
, - Qualifier: Double quote (
") - Newline: Windows / CRLF
- Add BOM: Enabled
- Filename:
data/out/recently_modified_files.csv
Explanation:
Export the six selected fields to a UTF-8 CSV file.
The qualifier handles values containing commas, such as filenames. Add BOM helps Excel recognise UTF-8 encoding.
The output columns contain:
| Column | Description |
|---|---|
FolderPath |
Parent-folder path relative to the repository root. |
FileName |
Original filename with its extension. |
Extension |
Lowercase extension without the dot. |
SizeBytes |
File size in bytes. |
LastModified |
Formatted modification timestamp with its UTC offset. |
FullPath |
Absolute file path. |
The relative output path resolves under the Repertoire Server installation root.
Note: An existing CSV with the same filename is overwritten. CSV files do not store column widths; adjust the widths in the spreadsheet application used to view the export.
Step 25: Run and Verify the Workflow
Run the Main chain. Review the intermediate results and exported CSV.
Verification:
- Confirm that
LookBackDayscontains the required period. - Verify the calculated
RunTimestampandCutoffTimestamp. - Confirm that both boundaries are Date-Time before the comparisons.
- Check that the Boolean Filters retain only files within the search period.
- Verify that the newest files appear first.
- Confirm that the CSV contains the six configured columns.
- Review the writer result and execution messages to confirm successful export.
For a seven-day window ending at 2026-10-07 15:00:00 +08:00, the expected results are:
| File modification timestamp | Result |
|---|---|
2026-09-30 14:59:59 +08:00 |
Excluded: before the cutoff. |
2026-09-30 15:00:00 +08:00 |
Included: equal to the cutoff. |
2026-10-03 10:00:00 +08:00 |
Included: within the period. |
2026-10-07 15:00:00 +08:00 |
Included: equal to the run timestamp. |
2026-10-07 15:00:01 +08:00 |
Excluded: after the run timestamp. |
CSV File Writer returns a result containing rowCount, excluding the header. A zero match count is valid if no files were modified within the specified period.
Changing the Lookback Period
Edit the JSON Record step named Set Repository Search Settings. Change LookBackDays to the required number of days.
For example, to include files modified within the preceding 30 days:
{
"RepositoryRoot": "C:/Elixir/Repertoire-202x/repository",
"LookBackDays": 30
}
| LookBackDays | Search period |
|---|---|
1 |
Preceding 24 hours. |
7 |
Preceding 7 days. |
14 |
Preceding 14 days. |
30 |
Preceding 30 days. |
Note: Use a positive whole number. A value of
30represents 720 elapsed hours, rather than the previous calendar month.
Workflow Summary
Define repository root and lookback period
|
v
Capture the run timestamp
|
v
Calculate the cutoff timestamp
|
v
Convert comparison boundaries to Date-Time
|
v
Read repository files recursively
|
v
Retain files within the search period
|
v
Prepare the inventory columns
|
v
Sort files by modification timestamp
|
v
Format timestamps
|
v
Export the results to CSV
What This Guide Achieves
- Identifies files modified within a configurable period.
- Applies consistent timestamp boundaries throughout the workflow.
- Produces structured file information for review.
- Output the most recently modified files.






















