# Empty message after curl input exec command

**URL:** <https://discuss.elastic.co/t/empty-message-after-curl-input-exec-command/142405>\
**Category:** Logstash\
**Created:** [July 31, 2018, 3:26pm UTC](https://discuss.elastic.co/t/empty-message-after-curl-input-exec-command/142405 "2018-07-31T15:26:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nico2](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@nico2](https://discuss.elastic.co/u/nico2)\
**Post date:** [July 31, 2018, 3:26pm UTC](https://discuss.elastic.co/t/empty-message-after-curl-input-exec-command/142405/1 "2018-07-31T15:26:46Z")

</div>

Hello,

The following logstash conf file should send back the content of a sftp server. But I get an empty message in the created index.  
When my command is "DIR C:/Logs", I can get some informations in the message. Is there something wrong with this command ?

input {  
exec {  
command =\> "curl -k -v sftp://user:password@host.fr"  
interval =\> 30000  
}  
}

output {

```
elasticsearch {
	hosts => "localhost:9200"
	index => "test_exec"
	
}	
stdout {
	codec => dots
}

```

}

Regards,

Nicolas

---

<div class="post-metadata">

**Author:** ![Marco\_Strambelli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_strambelli/32/32161_2.png) [@Marco\_Strambelli](https://discuss.elastic.co/u/Marco_Strambelli)\
**Post date:** [August 9, 2018, 9:24am UTC](https://discuss.elastic.co/t/empty-message-after-curl-input-exec-command/142405/2 "2018-08-09T09:24:12Z")

</div>

Same problem. Empty output from a CURL exec command

---

<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:** [September 6, 2018, 9:24am UTC](https://discuss.elastic.co/t/empty-message-after-curl-input-exec-command/142405/3 "2018-09-06T09:24:21Z")

</div>

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