# Send Logs from Filebeat on my local machine to Logstash having a private ip

**URL:** https://discuss.elastic.co/t/send-logs-from-filebeat-on-my-local-machine-to-logstash-having-a-private-ip/330352
**Category:** Logstash
**Created:** [April 20, 2023, 5:46am UTC](https://discuss.elastic.co/t/send-logs-from-filebeat-on-my-local-machine-to-logstash-having-a-private-ip/330352 "2023-04-20T05:46:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)
#### Post date: [April 20, 2023, 5:46am UTC](https://discuss.elastic.co/t/send-logs-from-filebeat-on-my-local-machine-to-logstash-having-a-private-ip/330352/1 "2023-04-20T05:46:03Z")

</div>

Hi i have installed filebeat on my local windows machine. I want to send logs to Logstash which has a private IP only and is in a different VPC. How can i set a connection between these two machines?  
Is it possible?

---

<div class="post-metadata">

### Author: ![Wave](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wave/32/117242_2.png) [@Wave](https://discuss.elastic.co/u/Wave)
#### Post date: [April 24, 2023, 5:55pm UTC](https://discuss.elastic.co/t/send-logs-from-filebeat-on-my-local-machine-to-logstash-having-a-private-ip/330352/2 "2023-04-24T17:55:58Z")

</div>

Is this VPC on a different machine, or just running as a different host also on the same local windows machine? Sounds like a networking issue either way. The answer is probably yes since you can theoretically network anything, but will need more info. If everything is local on your machine you should be able to configure your VM program to network between both systems.

---

<div class="post-metadata">

### Author: ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)
#### Post date: [April 24, 2023, 7:13pm UTC](https://discuss.elastic.co/t/send-logs-from-filebeat-on-my-local-machine-to-logstash-having-a-private-ip/330352/3 "2023-04-24T19:13:10Z")

</div>

As Andrew said, yes you can.

1. Open port on LS side.
2. Run a LS process with .conf, test the connection with telnet/curl
3. Run FB  
Would recommend to use HTTPS.

---

<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: [May 22, 2023, 7:13pm UTC](https://discuss.elastic.co/t/send-logs-from-filebeat-on-my-local-machine-to-logstash-having-a-private-ip/330352/4 "2023-05-22T19:13:55Z")

</div>

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