# Why can't receive log from the ftp server?

**URL:** <https://discuss.elastic.co/t/why-cant-receive-log-from-the-ftp-server/259217>\
**Category:** Logstash\
**Created:** [December 21, 2020, 6:14am UTC](https://discuss.elastic.co/t/why-cant-receive-log-from-the-ftp-server/259217 "2020-12-21T06:14:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![111418](https://avatars.discourse-cdn.com/v4/letter/1/258eb7/32.png) [@111418](https://discuss.elastic.co/u/111418)\
**Post date:** [December 21, 2020, 6:14am UTC](https://discuss.elastic.co/t/why-cant-receive-log-from-the-ftp-server/259217/1 "2020-12-21T06:14:20Z")

</div>

My conf is

```auto
input {
  tcp {
    port => 10514
    type=> "leo_ftp"
  }
  tcp {
    port => 10515
    type => "jim_ftp"
  }
}

filter { }

output {
 if[type]=="leo_ftp"{
  elasticsearch {
    hosts => ["ip:9200"]
    index => "ftp_log_%{+YYYY.MM.dd}"
  }
  }
   if[type]=="jim_ftp"{
  elasticsearch {
    hosts => ["ip:9200"]
    index => "nas_ftp_log_%{+YYYY.MM.dd}"
  }
  }}

```

Both jim\_ftp and Leo\_ftp are ftp server.  
I can only receive log from jim\_ftp.  
Does any method to check why can't receive log from leo\_ftp?

---

<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:** [January 18, 2021, 6:14am UTC](https://discuss.elastic.co/t/why-cant-receive-log-from-the-ftp-server/259217/2 "2021-01-18T06:14:21Z")

</div>

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