Supports Expression Language: truePort | 22 | | The port to connect to on the remote host to fetch the data from Supports Expression Language: true |
Username | | | Username Supports Expression Language: true |
Password | | | Password for the user account Sensitive Property: true Supports Expression Language: true |
Private Key Path | | | The fully qualified path to the Private Key file Supports Expression Language: true |
Private Key Passphrase | | | Password for the private key Sensitive Property: true Supports Expression Language: true |
Remote Path | . | | The path on the remote system from which to pull or push files Supports Expression Language: true |
Distributed Cache Service | | Controller Service API: DistributedMapCacheClient Implementations: RedisDistributedMapCacheClientService DistributedMapCacheClientService HBase_1_1_2_ClientMapCacheService | Specifies the Controller Service that should be used to maintain state about what has been pulled from the remote server so that if a new node begins pulling data, it won't duplicate all of the work that has been done. If not specified, the information will not be shared across the cluster. This property does not need to be set for standalone instances of NiFi but should be configured if NiFi is run within a cluster. |
Search Recursively | false | | If true, will pull files from arbitrarily nested subdirectories; otherwise, will not traverse subdirectories |
File Filter Regex | | | Provides a Java Regular Expression for filtering Filenames; if a filter is supplied, only files whose names match that Regular Expression will be fetched |
Path Filter Regex | | | When Search Recursively is true, then only subdirectories whose path matches the given Regular Expression will be scanned |
Ignore Dotted Files | true | | If true, files whose names begin with a dot (".") will be ignored |
Strict Host Key Checking | false | | Indicates whether or not strict enforcement of hosts keys should be applied |
Host Key File | | | If supplied, the given file will be used as the Host Key; otherwise, no use host key file will be used |
Connection Timeout | 30 sec | | Amount of time to wait before timing out while creating a connection |
Data Timeout | 30 sec | | When transferring a file between the local and remote system, this value specifies how long is allowed to elapse without any data being transferred between systems |
Send Keep Alive On Timeout | true | | Indicates whether or not to send a single Keep Alive message when SSH socket times out |
Target System Timestamp Precision | auto-detect | - Auto Detect
 - Milliseconds
 - Seconds
 - Minutes

| Specify timestamp precision at the target system. Since this processor uses timestamp of entities to decide which should be listed, it is crucial to use the right timestamp precision. |
Relationships:
Name | Description |
---|
success | All FlowFiles that are received are routed to success |
Reads Attributes:
None specified.Writes Attributes:
Name | Description |
---|
sftp.remote.host | The hostname of the SFTP Server |
sftp.remote.port | The port that was connected to on the SFTP Server |
sftp.listing.user | The username of the user that performed the SFTP Listing |
file.owner | The numeric owner id of the source file |
file.group | The numeric group id of the source file |
file.permissions | The read/write/execute permissions of the source file |
file.size | The number of bytes in the source file |
file.lastModifiedTime | The timestamp of when the file in the filesystem waslast modified as 'yyyy-MM-dd'T'HH:mm:ssZ' |
filename | The name of the file on the SFTP Server |
path | The fully qualified name of the directory on the SFTP Server from which the file was pulled |
State management:
Scope | Description |
---|
CLUSTER | After performing a listing of files, the timestamp of the newest file is stored. This allows the Processor to list only files that have been added or modified after this date the next time that the Processor is run. State is stored across the cluster so that this Processor can be run on Primary Node only and if a new Primary Node is selected, the new node will not duplicate the data that was listed by the previous Primary Node. |
Restricted:
This component is not restricted.Input requirement:
This component does not allow an incoming relationship.System Resource Considerations:
None specified.See Also:
FetchSFTP, GetSFTP, PutSFTP