# Not able to receive Logstash input fron FTP server

**URL:** <https://discuss.elastic.co/t/not-able-to-receive-logstash-input-fron-ftp-server/82120>\
**Category:** Logstash\
**Created:** [April 12, 2017, 8:52am UTC](https://discuss.elastic.co/t/not-able-to-receive-logstash-input-fron-ftp-server/82120 "2017-04-12T08:52:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anisen](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@anisen](https://discuss.elastic.co/u/anisen)\
**Post date:** [April 12, 2017, 8:52am UTC](https://discuss.elastic.co/t/not-able-to-receive-logstash-input-fron-ftp-server/82120/1 "2017-04-12T08:52:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 12, 2017, 1:21pm UTC](https://discuss.elastic.co/t/not-able-to-receive-logstash-input-fron-ftp-server/82120/2 "2017-04-12T13:21:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 10, 2017, 1:35pm UTC](https://discuss.elastic.co/t/not-able-to-receive-logstash-input-fron-ftp-server/82120/3 "2017-05-10T13:35:02Z")

</div>

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