# How to send logs from logstash to a remote Elasticsearch Server

**URL:** <https://discuss.elastic.co/t/how-to-send-logs-from-logstash-to-a-remote-elasticsearch-server/123517>\
**Category:** Logstash\
**Created:** [March 12, 2018, 9:44am UTC](https://discuss.elastic.co/t/how-to-send-logs-from-logstash-to-a-remote-elasticsearch-server/123517 "2018-03-12T09:44:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hanen](https://avatars.discourse-cdn.com/v4/letter/h/5f8ce5/32.png) [@Hanen](https://discuss.elastic.co/u/Hanen)\
**Post date:** [March 12, 2018, 9:44am UTC](https://discuss.elastic.co/t/how-to-send-logs-from-logstash-to-a-remote-elasticsearch-server/123517/1 "2018-03-12T09:44:38Z")

</div>

Hi,

I have a server where I have installed logstash. I am trying to forward a log windows using winlogbeat to a **_remote Elasticsearch server._**  
i specified the elasticserver's host address and ports in the output configurations.But I cannot see anything on kibana.

What config do I need to do to achieve this?

Many thanks!!!

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 12, 2018, 10:24am UTC](https://discuss.elastic.co/t/how-to-send-logs-from-logstash-to-a-remote-elasticsearch-server/123517/2 "2018-03-12T10:24:43Z")

</div>

What does your Logstash configuration look like? Have you looked in your Winlogbeat log file to see if it has problems sending to Logstash? Have you looked in your Logstash log file to see if it has problems sending to Elasticsearch?

---

<div class="post-metadata">

**Author:** ![Hanen](https://avatars.discourse-cdn.com/v4/letter/h/5f8ce5/32.png) [@Hanen](https://discuss.elastic.co/u/Hanen)\
**Post date:** [March 12, 2018, 2:02pm UTC](https://discuss.elastic.co/t/how-to-send-logs-from-logstash-to-a-remote-elasticsearch-server/123517/3 "2018-03-12T14:02:03Z")

</div>

Thanks for your reply!!  
my **logstash.conf** is:

input {  
beats {  
port =\> 5044  
}  
}  
output {  
elasticsearch {  
hosts =\> ["@elasticserever:9200"]  
index =\> "win-log-%{+YYYY.MM.dd}"  
}  
}

I make sure that elasticsearch received logs from logstash.But i cannot see any log on kibana.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 12, 2018, 9:20pm UTC](https://discuss.elastic.co/t/how-to-send-logs-from-logstash-to-a-remote-elasticsearch-server/123517/4 "2018-03-12T21:20:06Z")

</div>

> hosts =\> ["@elasticserever:9200"]

There an at-sign in your hostname?

> I make sure that elasticsearch received logs from logstash.

How?

> But i cannot see any log on kibana.

Have you tried using Elasticsearch's REST API to verify what, if anything, has ended up there?

---

<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 9, 2018, 9:20pm UTC](https://discuss.elastic.co/t/how-to-send-logs-from-logstash-to-a-remote-elasticsearch-server/123517/5 "2018-04-09T21:20:06Z")

</div>

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