# Logstash on cloud

**URL:** <https://discuss.elastic.co/t/logstash-on-cloud/163339>\
**Category:** Logstash\
**Created:** [January 8, 2019, 10:30am UTC](https://discuss.elastic.co/t/logstash-on-cloud/163339 "2019-01-08T10:30:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eebee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eebee/32/26799_2.png) [@eebee](https://discuss.elastic.co/u/eebee)\
**Post date:** [January 8, 2019, 10:30am UTC](https://discuss.elastic.co/t/logstash-on-cloud/163339/1 "2019-01-08T10:30:33Z")

</div>

I'm trying out the free trial of Elasticsearch on Cloud.

I'm trying to add a Logstash Pipeline to ingest data from an external source.

How do I configure the output-part to ingest my data?

output {  
elasticsearch {  
hosts =\> "[https://xxxxxxxxxxxx.aws.cloud.es.io:9243](https://xxxxxxxxxxxx.aws.cloud.es.io:9243)"  
user =\> "elastic"  
password =\> "xxxxxxxxxxxxxxxx"  
index =\> "logstash-xxxxxxxx-%{+YYYY.MM.dd}"  
document\_type =\> "mylogs"  
}  
}

---

<div class="post-metadata">

**Author:** ![StephenGoodall](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@StephenGoodall](https://discuss.elastic.co/u/StephenGoodall)\
**Post date:** [January 9, 2019, 4:50am UTC](https://discuss.elastic.co/t/logstash-on-cloud/163339/2 "2019-01-09T04:50:56Z")

</div>

Have you already tried the above?

You may need to put square brackets around that "hosts" value.

The document\_type looks to have been deprecated now so you might be able to just remove that option:  
[https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-document\_type](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-document_type)

---

<div class="post-metadata">

**Author:** ![eebee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eebee/32/26799_2.png) [@eebee](https://discuss.elastic.co/u/eebee)\
**Post date:** [January 29, 2019, 2:00pm UTC](https://discuss.elastic.co/t/logstash-on-cloud/163339/3 "2019-01-29T14:00:54Z")

</div>

Tried with square brackets around host, with no success. I tried to ingest data from a local instance of metricbeat, which worked just fine. But my logstash pipeline is worse. It would be nice to try some other data without any major work input, just to make sure that it's not my input or filter-sections that causes the error.

---

<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:** [February 26, 2019, 2:00pm UTC](https://discuss.elastic.co/t/logstash-on-cloud/163339/4 "2019-02-26T14:00:56Z")

</div>

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