# Logstash 2.0 with https protocol to elasticsearch

**URL:** <https://discuss.elastic.co/t/logstash-2-0-with-https-protocol-to-elasticsearch/35256>\
**Category:** Logstash\
**Created:** [November 23, 2015, 1:33am UTC](https://discuss.elastic.co/t/logstash-2-0-with-https-protocol-to-elasticsearch/35256 "2015-11-23T01:33:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sasha\_meltser](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@sasha\_meltser](https://discuss.elastic.co/u/sasha_meltser)\
**Post date:** [November 23, 2015, 1:33am UTC](https://discuss.elastic.co/t/logstash-2-0-with-https-protocol-to-elasticsearch/35256/1 "2015-11-23T01:33:23Z")

</div>

I have install Elasticsearch 2.0, Kibana 4.2, Logstash 2.0 and Shield.

After configuring logstash with input file, filter and output I am unable to send logs to elasticsearch

error message is

{:timestamp=\>"2015-11-22T15:11:33.744000-0700", :message=\>"Attempted to send a bulk request to Elasticsearch configured at '["[http://localhost:9200/](http://localhost:9200/)"]'  
, but an error occurred and it failed! Are you sure you can reach elasticsearch from this machine using the configuration provided?", :client\_config=\>{:h  
osts=\>["[http://localhost:9200/](http://localhost:9200/)"], :ssl=\>nil, :transport\_options=\>{:socket\_timeout=\>0, :request\_timeout=\>0, :proxy=\>nil, :ssl=\>{}}, :transport\_class=\>Elas  
ticsearch::Transport::Transport::HTTP::Manticore, :logger=\>nil, :tracer=\>nil, :reload\_connections=\>false, :retry\_on\_failure=\>false, :reload\_on\_failure=\>f  
alse, :randomize\_hosts=\>false}, :error\_message=\>"localhost:9200 failed to respond",

the config file is

input {  
lumberjack {  
port =\> 5043  
type =\> "logs"  
ssl\_certificate =\> "/etc/pki/tls/certs/logstash-forwarder.crt"  
ssl\_key =\> "/etc/pki/tls/private/logstash-forwarder.key"  
}  
}  
filter {  
if [type] == "syslog" {  
grok {  
match =\> { "message" =\> "%{SYSLOGTIMESTAMP:syslog\_timestamp} %{SYSLOGHOST:syslog\_hostname} %{DATA:syslog\_program}(?:[%{POSINT:syslog\_pid}])?: %{G  
REEDYDATA:syslog\_message}" }  
add\_field =\> ["received\_at", "%{@timestamp}"]  
add\_field =\> ["received\_from", "%{host}"]  
}  
syslog\_pri { }  
date {  
match =\> ["syslog\_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss"]  
}  
}  
}  
output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
}  
stdout { codec =\> rubydebug }  
}

any help please

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 23, 2015, 1:46am UTC](https://discuss.elastic.co/t/logstash-2-0-with-https-protocol-to-elasticsearch/35256/2 "2015-11-23T01:46:30Z")

</div>

[https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking\_20\_network\_changes.html#\_bind\_to\_localhost](https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_20_network_changes.html#_bind_to_localhost) perhaps?

---

<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:** [July 6, 2017, 5:21am UTC](https://discuss.elastic.co/t/logstash-2-0-with-https-protocol-to-elasticsearch/35256/3 "2017-07-06T05:21:47Z")

</div>


