# Filebeat on Windows xp forcibly closed by the remote host

**URL:** https://discuss.elastic.co/t/filebeat-on-windows-xp-forcibly-closed-by-the-remote-host/58270
**Category:** Beats
**Tags:** filebeat
**Created:** [August 17, 2016, 3:04pm UTC](https://discuss.elastic.co/t/filebeat-on-windows-xp-forcibly-closed-by-the-remote-host/58270 "2016-08-17T15:04:47Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![pjhu](https://avatars.discourse-cdn.com/v4/letter/p/cdc98d/32.png) [@pjhu](https://discuss.elastic.co/u/pjhu)
#### Post date: [August 17, 2016, 3:04pm UTC](https://discuss.elastic.co/t/filebeat-on-windows-xp-forcibly-closed-by-the-remote-host/58270/1 "2016-08-17T15:04:47Z")

</div>

I am using Filebeat on windows xp ship log to logstash

##Filebeat DEBUG log

```
2016-08-17T19:34:31+08:00 DBG output worker: publish 1 events
2016-08-17T19:34:31+08:00 DBG Try to publish 1 events to logstash with window size 10
2016-08-17T19:34:31+08:00 DBG output worker: publish 1 events
2016-08-17T19:34:31+08:00 DBG close connection
2016-08-17T19:34:31+08:00 DBG 0 events out of 1 events sent to logstash. Continue sending ...
2016-08-17T19:34:31+08:00 INFO Error publishing events (retrying): write tcp 10.192.x.x:4647->10.93.x.x:5044: wsasend: An existing connection was forcibly closed by the remote host.
2016-08-17T19:34:31+08:00 INFO send fail
2016-08-17T19:34:31+08:00 INFO backoff retry: 1s
2016-08-17T19:34:32+08:00 DBG End of file reached: c:\opt\filebeat\3700d.log; Backoff now.
2016-08-17T19:34:32+08:00 DBG connect
2016-08-17T19:34:32+08:00 DBG Try to publish 1 events to logstash with window size 5
2016-08-17T19:34:34+08:00 DBG Start next scan
2016-08-17T19:34:34+08:00 DBG scan path c:\opt\filebeat\3700d.log
2016-08-17T19:34:34+08:00 DBG Check file for harvesting: c:\opt\filebeat\3700d.log
2016-08-17T19:34:34+08:00 DBG Same file as before found. Fetch the state.    
2016-08-17T19:34:34+08:00 DBG Update existing file for harvesting: c:\opt\filebeat\3700d.log
2016-08-17T19:34:34+08:00 DBG Not harvesting, file didn't change: c:\opt\filebeat\3700d.log
2016-08-17T19:34:35+08:00 DBG close connection
2016-08-17T19:34:35+08:00 DBG 0 events out of 1 events sent to logstash. Continue sending ...
2016-08-17T19:34:35+08:00 INFO Error publishing events (retrying): read tcp 10.192.0.10:4673->10.93.219.45:5044: wsarecv: The specified network name is no longer available.
2016-08-17T19:34:35+08:00 INFO send fail

```

##errors

```
1. wsasend: An existing connection was forcibly closed by the remote host

2. sarecv: The specified network name is no longer available.

```

## Filebeat Environments

```
OS: Windows xp sp3
version: 1.2.3

```

## Logstash Environments

```
os: CentOS 6.7
verison: 2.3.4
DN: logstash.xxxx.com

```

## Network

Windows and CentOS machine have different networks environment, but if I `telnet` Centos port 5044 on Windows is ok.

##filebeat.yml

```
filebeat:
  prospectors:
    -
      paths:
        - c:\opt\filebeat\3700d.log
      document_type: 3700d
logging:
  level: debug
  to_files: true
  to_syslog: false
  files:
    path: c:\opt\mybeat
    name: mybeat.log
    keepfiles: 2
output:
  logstash:
    hosts: ["logstash.xxxx.com:5044"]

```

##logstash.conf:  
input {  
beats {  
port =\> 5044  
}  
}  
filter {  
}  
output {  
stdout {  
codec =\> rubydebug {metadata =\> true}  
}  
}

---

<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: [August 17, 2016, 3:31pm UTC](https://discuss.elastic.co/t/filebeat-on-windows-xp-forcibly-closed-by-the-remote-host/58270/2 "2016-08-17T15:31:52Z")

</div>

did you ping/telnet by domain name or ip address? Did IP change, but DNS entries reported being outdated?

---

<div class="post-metadata">

### Author: ![pjhu](https://avatars.discourse-cdn.com/v4/letter/p/cdc98d/32.png) [@pjhu](https://discuss.elastic.co/u/pjhu)
#### Post date: [August 18, 2016, 12:13am UTC](https://discuss.elastic.co/t/filebeat-on-windows-xp-forcibly-closed-by-the-remote-host/58270/3 "2016-08-18T00:13:57Z")

</div>

@steffens thanks for you reply, I ping/telnet by domain name, not ip address.

---

<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: [August 18, 2016, 9:53am UTC](https://discuss.elastic.co/t/filebeat-on-windows-xp-forcibly-closed-by-the-remote-host/58270/4 "2016-08-18T09:53:36Z")

</div>

can you try to ping by IP address? The error message:

```auto
2016-08-17T19:34:35+08:00 INFO Error publishing events (retrying): read tcp 10.192.0.10:4673->10.93.219.45:5044: wsarecv: The specified network name is no longer available.

```

clearly states the currently known ip address. To me it looks like some machine was 'powered off'/'rebooted'.

---

<div class="post-metadata">

### Author: ![pjhu](https://avatars.discourse-cdn.com/v4/letter/p/cdc98d/32.png) [@pjhu](https://discuss.elastic.co/u/pjhu)
#### Post date: [August 19, 2016, 1:52am UTC](https://discuss.elastic.co/t/filebeat-on-windows-xp-forcibly-closed-by-the-remote-host/58270/5 "2016-08-19T01:52:07Z")

</div>

Thank you @steffens, I find my network mapping from 10.192.0.10 to domain name '[logstash.xxxx.com](http://logstash.xxxx.com) ' is not true, so may be the reason for my problems. I should fix the network problem, Thank you again.

---

<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 7, 2016, 3:05pm UTC](https://discuss.elastic.co/t/filebeat-on-windows-xp-forcibly-closed-by-the-remote-host/58270/6 "2016-09-07T15:05:02Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
