Not able to receive Logstash input fron FTP server

Hi, I m using Logstash 5.1.1 in Windows operating system.

I am trying to receive logstash input fron FTP server with the below filter:

input {
exec {
command => "curl ftp://servername/apacheLog.log"
interval => 300
}
}

And getting the error: " 'curl' is not recognized as an internal or external command,operable program or batch file. "

Please suggest.

Obtaining logs in this way is not a good idea. I strongly suggest you install Filebeat on the FTP server and ship the log to Logstash.

The error message you're getting in quite clear: Logstash can't find curl, so either it's not installed at all or the directory where it's installed isn't listed in the Logstash process's path.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.