# Logstash is not sending logs in ElasticSearch

**URL:** <https://discuss.elastic.co/t/logstash-is-not-sending-logs-in-elasticsearch/84654>\
**Category:** Logstash\
**Created:** [May 5, 2017, 5:36am UTC](https://discuss.elastic.co/t/logstash-is-not-sending-logs-in-elasticsearch/84654 "2017-05-05T05:36:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![honey](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@honey](https://discuss.elastic.co/u/honey)\
**Post date:** [May 5, 2017, 5:36am UTC](https://discuss.elastic.co/t/logstash-is-not-sending-logs-in-elasticsearch/84654/1 "2017-05-05T05:36:30Z")

</div>

Hey,  
here logstash is creating logs but not displaying anything on Elasticsearch.  
This is my log\_config file.

input {  
tcp {  
port =\> 5022  
type =\> "syslog"  
}  
udp {  
port =\> 5022  
type =\> "syslog"  
}  
}

output {  
elasticsearch {  
hosts =\> ["192.168.1.103:9200"]  
user =\> "elastic"  
password =\> "changeme"  
index =\> "logstash-%{+YYYY.MM.dd}"  
}  
stdout { codec =\> "rubydebug" }  
}  
Can u please help me with this?

---

<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:** [May 5, 2017, 5:46am UTC](https://discuss.elastic.co/t/logstash-is-not-sending-logs-in-elasticsearch/84654/2 "2017-05-05T05:46:45Z")

</div>

If you comment out the elasticsearch output, are you getting the events on stdout thanks to the `stdout { codec => "rubydebug" }` output? Have you looked in the Logstash log for clues?

---

<div class="post-metadata">

**Author:** ![honey](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@honey](https://discuss.elastic.co/u/honey)\
**Post date:** [May 5, 2017, 5:53am UTC](https://discuss.elastic.co/t/logstash-is-not-sending-logs-in-elasticsearch/84654/3 "2017-05-05T05:53:46Z")

</div>

Yaa, But I am not getting any errors or clues in Logstash logs.

---

<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:** [May 5, 2017, 7:21am UTC](https://discuss.elastic.co/t/logstash-is-not-sending-logs-in-elasticsearch/84654/4 "2017-05-05T07:21:02Z")

</div>

Was "Yaa" an answer to my first question? If not please answer my first question.

---

<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:** [June 2, 2017, 7:31am UTC](https://discuss.elastic.co/t/logstash-is-not-sending-logs-in-elasticsearch/84654/5 "2017-06-02T07:31:19Z")

</div>

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