sftp
Type:
Writes files to an SFTP server.
Introduced in version 3.39.0.
# Config fields, showing default values
output:
label: ""
sftp:
address: "" # No default (required)
path: "" # No default (required)
codec: all-bytes
credentials:
username: ""
password: ""
private_key_file: ""
private_key_pass: ""
max_in_flight: 64
In order to have a different path for each object you should use function interpolations described here.
Performance
This output benefits from sending multiple messages in flight in parallel for improved performance. You can tune the max number of in flight messages (or message batches) with the field max_in_flight
.
Fields
path
The file to save the messages to on the server. This field supports interpolation functions.
Type: string
codec
The way in which the bytes of messages should be written out into the output data stream. It’s possible to write lines using a custom delimiter with the delim:x
codec, where x is the character sequence custom delimiter.
Type: string
Default: "all-bytes"
Option | Summary |
---|---|
|
Only applicable to file based outputs. Writes each message to a file in full, if the file already exists the old content is deleted. |
|
Append each message to the output stream without any delimiter or special encoding. |
|
Append each message to the output stream followed by a custom delimiter. |
|
Append each message to the output stream followed by a line break. |
# Examples
codec: lines
codec: "delim:\t"
codec: delim:foobar
credentials.password
The password for the username to connect to the SFTP server.
This field contains sensitive information that usually shouldn’t be added to a config directly, read our secrets page for more info. |
Type: string
Default: ""
credentials.private_key_file
The private key for the username to connect to the SFTP server.
Type: string
Default: ""
credentials.private_key_pass
Optional passphrase for private key.
This field contains sensitive information that usually shouldn’t be added to a config directly, read our secrets page for more info. |
Type: string
Default: ""