A network server on port 21 (FTP) will be source of events for Apache-flume. Files in main directory's server will be discovered and proccessed. The source is implemented as pollable source in terms of Flume, as the polling time is configurable in the main configuration of flume's file. In main flume's agent configuration file must be specified if security for FTP is required. There are two kind of protocol security supported by the plugin:
- FTP: File Transfer Protocol, normal plain text (insecure) but available for common use. Port 21.
- FTPS: File Transfer Protocol that uses AUTH SSL o TLS cryptographic protocols. Port 21.
- SFTP: File Transfer Protocol that uses SSH V3, via a single channel (layer transport) and sending/receiving in binary. Port 22.(Recommended).
Files proccesed will be "saved" in an external file.
- Apache-flume mayor to 1.4.0.
- commons-net-3.3.jar (ftpClient and ftpsClient)
- jsch-0.1.52.jar (channelSftp)
###### Example configuration for FTP source
agent.sources.ftp1.type = org.apache.flume.source.FTPSource agent.sources.ftp1.name.server = 127.0.0.1 agent.sources.ftp1.user = username agent.sources.ftp1.password = password agent.sources.ftp1.port = 21 agent.sources.ftp1.folder = /var/flume agent.sources.ftp1.file.name = status-ftp1-file.ser agent.sources.ftp1.security.enabled = false agent.sources.ftp1.security.cipher = TLS agent.sources.ftp1.security.certificate.enabled = false
###### Example configuration for FTPS source
agent.sources.ftp1.type = org.apache.flume.source.FTPSource (same source as FTP) agent.sources.ftp1.name.server = 127.0.0.1 agent.sources.ftp1.user = username agent.sources.ftp1.password = password agent.sources.ftp1.port = 21 agent.sources.ftp1.folder = /var/flume agent.sources.ftp1.file.name = status-ftp1-file.ser agent.sources.ftp1.security.enabled = true agent.sources.ftp1.security.cipher = TLS agent.sources.ftp1.security.certificate.enabled = (false | true) (if false the plugin will accept any certificate sent by the server, validated or not).
###### Example configuration for SFTP source
agent.sources.sftp1.type = org.apache.flume.source.SFTPSource (exclusive source for SFTP) agent.sources.sftp1.name.server = 127.0.0.1 agent.sources.sftp1.user = username agent.sources.sftp1.password = password agent.sources.sftp1.port = 22 agent.sources.sftp1.folder = /var/flume agent.sources.sftp1.file.name = status-sftp1-file.ser agent.sources.sftp1.knownHosts = /home/username/.ssh/known_hosts
agent.sources.fpt1.run.discover.delay=10000
Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0
-- Luis Lázaro [email protected]