Downloads bytes via FTP or FTPS and parses them with a subpipeline.
from_ftp url:string, [tls=record] { … }Description
Section titled “Description”The from_ftp operator downloads bytes from an FTP or FTPS server and forwards
them to the required subpipeline.
url: string
Section titled “url: string”The URL to request from. You can omit the ftp:// scheme.
tls = record (optional)
Section titled “tls = record (optional)”TLS configuration.
By default, ftps:// enables TLS and ftp:// does not. If you omit the
scheme, the operator assumes ftp://.
tls = record (optional)
Section titled “tls = record (optional)”TLS configuration. Provide an empty record (tls={}) to enable TLS with
defaults or set fields to customize it.
{ skip_peer_verification: bool, // skip certificate verification. cacert: string, // CA bundle to verify peers. certfile: string, // client certificate to present. keyfile: string, // private key for the client certificate. min_version: string, // minimum TLS version (`"1.0"`, `"1.1"`, `"1.2"`, "1.3"`). ciphers: string, // OpenSSL cipher list string. client_ca: string, // CA to validate client certificates. require_client_cert, // require clients to present a certificate.}The client_ca and require_client_cert options are only applied
for operators that accept incoming client connections, and otherwise
ignored.
Any value not specified in the record will either be picked up from the configuration or if not configured will not be used by the operator.
See the Node TLS Setup guide for more details.
A required parsing subpipeline.
The subpipeline receives the downloaded body as bytes and must return events.
For example, use read_ndjson to parse newline-delimited JSON.
Examples
Section titled “Examples”Download NDJSON from an FTP server
Section titled “Download NDJSON from an FTP server”Use read_ndjson when the remote file already contains
newline-delimited JSON.
from_ftp "ftp://user:pass@ftp.example.org/events.ndjson" { read_ndjson}Download gzipped JSON and decompress it explicitly
Section titled “Download gzipped JSON and decompress it explicitly”Decompress the downloaded bytes before parsing them when the remote file is stored as gzip-compressed JSON.
from_ftp "ftp://user:pass@ftp.example.org/events.json.gz" { decompress gzip read_json}