# Logstash cannot index data from weather API to elasticsearch

**URL:** <https://discuss.elastic.co/t/logstash-cannot-index-data-from-weather-api-to-elasticsearch/182057>\
**Category:** Logstash\
**Created:** [May 21, 2019, 4:00pm UTC](https://discuss.elastic.co/t/logstash-cannot-index-data-from-weather-api-to-elasticsearch/182057 "2019-05-21T16:00:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![decodeit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/decodeit/32/46023_2.png) [@decodeit](https://discuss.elastic.co/u/decodeit)\
**Post date:** [May 21, 2019, 4:00pm UTC](https://discuss.elastic.co/t/logstash-cannot-index-data-from-weather-api-to-elasticsearch/182057/1 "2019-05-21T16:00:09Z")

</div>

I started with docker-compose up  
I can reach  
localhost:9200  
localhost:5601  
localhost:9600

but there is no data in elasticsearch.

The error I get is:  
`error=>"Elasticsearch Unreachable: [http://localhost:9200/][Manticore::SocketException] Connection refused (Connection refused)"}`

What my goal is to get the data from openweatherorg and store it in elasticsearch.

---

<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 18, 2019, 4:00pm UTC](https://discuss.elastic.co/t/logstash-cannot-index-data-from-weather-api-to-elasticsearch/182057/2 "2019-06-18T16:00:14Z")

</div>

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