# Cannot get winlogbeats to send to logstash

**URL:** https://discuss.elastic.co/t/cannot-get-winlogbeats-to-send-to-logstash/77648
**Category:** Beats
**Tags:** winlogbeat
**Created:** [March 7, 2017, 11:44am UTC](https://discuss.elastic.co/t/cannot-get-winlogbeats-to-send-to-logstash/77648 "2017-03-07T11:44:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![L33T](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@L33T](https://discuss.elastic.co/u/L33T)
#### Post date: [March 7, 2017, 11:44am UTC](https://discuss.elastic.co/t/cannot-get-winlogbeats-to-send-to-logstash/77648/1 "2017-03-07T11:44:00Z")

</div>

Hi,

Trying to get a new installation up and running but getting the following in my winlogbeats log:

`2017-03-07T11:25:46Z ERR Connecting error publishing events (retrying): Get http://192.168.50.181:9200: dial tcp 192.168.50.181:9200: connectex: No connection could be made because the target machine actively refused it.`

my configs are:

WinLogBeat:

```auto
#----------------------------- Logstash output --------------------------------
#output.logstash:
  # The Logstash hosts
  hosts: ["192.168.50.181:5044"]

  # Optional SSL. By default is off.
  # List of root certificates for HTTPS server verifications
  #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]

  # Certificate for SSL client authentication
  #ssl.certificate: "/etc/pki/cl
  ient/cert.pem"

  # Client Certificate Key
  #ssl.key: "/etc/pki/client/cert.key"

```

Logstash Config:

```auto
input {
  beats {
	port => 5044
  }
}

output {
  elasticsearch {
    hosts => "localhost:9200"
    manage_template => false
    index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
    document_type => "%{[@metadata][type]}"
  }
}

```

Regards,

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [March 11, 2017, 12:01am UTC](https://discuss.elastic.co/t/cannot-get-winlogbeats-to-send-to-logstash/77648/2 "2017-03-11T00:01:33Z")

</div>

Based on the log message you provided you still have Winlogbeat configured to output to elasticsearch.

Make sure you comment out or completely remove the `output.elasticsearch` options. And then you need to uncomment the `output.logstash` line.

---

<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: [April 8, 2017, 12:01am UTC](https://discuss.elastic.co/t/cannot-get-winlogbeats-to-send-to-logstash/77648/3 "2017-04-08T00:01:50Z")

</div>

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