# Cannot connect to X.X.X.X:10514: Connection refused

**URL:** https://discuss.elastic.co/t/cannot-connect-to-x-x-x-x-connection-refused/300055
**Category:** Beats
**Tags:** filebeat
**Created:** [March 18, 2022, 2:45pm UTC](https://discuss.elastic.co/t/cannot-connect-to-x-x-x-x-connection-refused/300055 "2022-03-18T14:45:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Oreius](https://avatars.discourse-cdn.com/v4/letter/o/ed8c4c/32.png) [@Oreius](https://discuss.elastic.co/u/Oreius)
#### Post date: [March 18, 2022, 2:45pm UTC](https://discuss.elastic.co/t/cannot-connect-to-x-x-x-x-connection-refused/300055/1 "2022-03-18T14:45:25Z")

</div>

Configuring a ELK stack version 8.1, based on two virtual machine which both run Oracle linux 8. I need to send logs from a VM to the other using rsyslog. On the recieving machine logs will be acquired using FileBeat. The file rsyslog.conf has been configured on the sending machine, adding target machine parameters. The file filebeat.yml has been configured to recieve logs from rsyslog like this:

```auto
- type: syslog
enabled: true
format: auto
protocol.tcp:
host: "X.X.X.X:10514"

```

The firewalld on the receiving machine has been configured opening the port 10514.

Since the reboot after configuration, the only thing I can get is the error:

```auto
cannot connect to X.X.X.X:10514: Connection refused

```

How can I solve this problem?

---

<div class="post-metadata">

### Author: ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)
#### Post date: [March 21, 2022, 3:16pm UTC](https://discuss.elastic.co/t/cannot-connect-to-x-x-x-x-connection-refused/300055/2 "2022-03-21T15:16:41Z")

</div>

What is the rsyslog configuration? Could you please check if you can reach the port in some other way?

---

<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 18, 2022, 5:17pm UTC](https://discuss.elastic.co/t/cannot-connect-to-x-x-x-x-connection-refused/300055/3 "2022-04-18T17:17:07Z")

</div>

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