Skip to main content

Log Files Names Mapping using variables

You can use variables to define the log file path and files names in the FastTransfer_settings.json In the WriteTo array you can use a Map like that :

{
"WriteTo": [
{
"Name": "Console",
"Args": {
"outputTemplate": "{Timestamp:yyyy-MM-ddTHH:mm:ss.fff zzz} -|- {Application} -|- {runid} -|- {Level:u12} -|- {fulltargetname} -|- {Message}{NewLine}{Exception}"
}
},
{
"Name": "Map",
"Args": {
"keyPropertyName": "TraceId",
"defaultKey": "no-trace",
"to": [
{
"Name": "File",
"Args": {
"path": "/logs/{logdate}/{sourcedatabase}/{sourcetable}/FastTransfer-log-{filename}-{logtimestamp}-{traceid}.json",
"formatter": "Serilog.Formatting.Compact.CompactJsonFormatter, Serilog.Formatting.Compact",
"rollingInterval": "Infinite",
"shared": false,
"encoding": "utf-8",
"retainedFileCountLimit": 100
}
}
]
}
}
]
}

The available variables to customize log path or log filename are :

Variable NameDescription
{logdate}Current date in yyyy-MM-dd format
{logtimestamp}Timestamp of the log entry
{sourcedatabase}Name of the source database
{sourceschema}Name of the source schema
{sourcetable}Name of the source table
{filename}Name of the file being processed
{runid}Run identifier provided in the command line
{traceid}Unique identifier generate at runtime

You can find complete configuration examples for both Windows and Linux:

Copyright © 2026 Architecture & Performance. Built with Docusaurus.