# Logstash plugin exec error: Port number ended with '\\'

**URL:** <https://discuss.elastic.co/t/logstash-plugin-exec-error-port-number-ended-with/282947>\
**Category:** Logstash\
**Created:** [August 31, 2021, 4:46pm UTC](https://discuss.elastic.co/t/logstash-plugin-exec-error-port-number-ended-with/282947 "2021-08-31T16:46:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nayeli\_hernandez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nayeli_hernandez/32/93962_2.png) [@nayeli\_hernandez](https://discuss.elastic.co/u/nayeli_hernandez)\
**Post date:** [August 31, 2021, 4:46pm UTC](https://discuss.elastic.co/t/logstash-plugin-exec-error-port-number-ended-with/282947/1 "2021-08-31T16:46:48Z")

</div>

Hi,

I want to execute a CURL aggreation in Logstash & schedule it every 1 mins and store the data in elastic search. I'm using exec logstash plugin to do, here is my code:

```auto
input{
	exec{
		codec => json 
		command =>"curl -XGET -H 'Content-Type:application/json' --data @agg.json http://localhost:9200/test/_search"
		interval => 5
		#schedule => "*/1 * * * *"
	}
}

output{
	stdout{codec => rubydebug}
}

```

but when I run the archive.conf i get the error: Port number ended with '/'  
Does anybody could help me ?

---

<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 28, 2021, 4:47pm UTC](https://discuss.elastic.co/t/logstash-plugin-exec-error-port-number-ended-with/282947/2 "2021-09-28T16:47:10Z")

</div>

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