# ERR Connecting error publishing events (retrying) - help me

**URL:** <https://discuss.elastic.co/t/err-connecting-error-publishing-events-retrying-help-me/91213>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 29, 2017, 2:39am UTC](https://discuss.elastic.co/t/err-connecting-error-publishing-events-retrying-help-me/91213 "2017-06-29T02:39:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![feelboy](https://avatars.discourse-cdn.com/v4/letter/f/c4cdca/32.png) [@feelboy](https://discuss.elastic.co/u/feelboy)\
**Post date:** [June 29, 2017, 2:39am UTC](https://discuss.elastic.co/t/err-connecting-error-publishing-events-retrying-help-me/91213/1 "2017-06-29T02:39:03Z")

</div>

HI.  
I am getting these error messages and I have the most basic configuration of Logstash/FileBeat.

error

> ERR Connecting error publishing events (retrying): Get [http://172.30.17.118:5044](http://172.30.17.118:5044): read tcp 172.30.17.118:59086-\>172.30.17.118:5044: wsarecv: An existing connection was forcibly closed by the remote host.

#filebeat.yml  
filebeat.prospectors:

```
- input_type: log

  # Paths that should be crawled and fetched. Glob based paths.
  paths:
    - F:\Project\logs\*
  document_type: log

output.elasticsearch:
hosts: ["172.30.17.118:5044"]

```

#config.conf  
input  
{  
beats  
{  
port =\> "5044"  
}  
}

```
output {
	if [type] == "log" {
		elasticsearch {
			index => "logstash-log-%{+YYYY.MM}"
			hosts => ["172.30.17.118:9200"]
		}
	}
}

```

#logstash  
`http.host: "172.30.17.118"`

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [June 29, 2017, 12:07pm UTC](https://discuss.elastic.co/t/err-connecting-error-publishing-events-retrying-help-me/91213/2 "2017-06-29T12:07:10Z")

</div>

you configured the elasticsearch output in filebeat.yml (also check indentation being correct, looks off).

---

<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:** [July 27, 2017, 12:07pm UTC](https://discuss.elastic.co/t/err-connecting-error-publishing-events-retrying-help-me/91213/3 "2017-07-27T12:07:13Z")

</div>

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