# Set logstash cloud output hosts

**URL:** <https://discuss.elastic.co/t/set-logstash-cloud-output-hosts/114435>\
**Category:** Logstash\
**Created:** [January 7, 2018, 11:02pm UTC](https://discuss.elastic.co/t/set-logstash-cloud-output-hosts/114435 "2018-01-07T23:02:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amir\_P](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Amir\_P](https://discuss.elastic.co/u/Amir_P)\
**Post date:** [January 7, 2018, 11:02pm UTC](https://discuss.elastic.co/t/set-logstash-cloud-output-hosts/114435/1 "2018-01-07T23:02:33Z")

</div>

**hello,**  
**I am trying to set Logstash configuration file output hosts as Elasticsearch cloud link**

output {  
elasticsearch {  
hosts =\> "[https://5something3.us-east-1.aws.found.io:9243](https://5something3.us-east-1.aws.found.io:9243)"  
index =\> "check1"  
}  
stdout {}

**Unfortunately when I run this file I get an error:**

ending Logstash's logs to /Users/myuser/Downloads/logstash-6.1.1/logs which is now configured via log4j2.properties  
[2018-01-08T00:22:57,046][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"netflow", :directory=\>"/Users/myuser/Downloads/logstash-6.1.1/modules/netflow/configuration"}  
[2018-01-08T00:22:57,071][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"fb\_apache", :directory=\>"/Users/myuser/Downloads/logstash-6.1.1/modules/fb\_apache/configuration"}  
[2018-01-08T00:22:57,376][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2018-01-08T00:22:57,416][INFO][logstash.agent] No persistent UUID file found. Generating new UUID {:uuid=\>"00888642-3ae4-404e-a673-64f143bc9d0b", :path=\>"/Users/myuser/Downloads/logstash-6.1.1/data/uuid"}  
[2018-01-08T00:22:57,933][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"6.1.1"}  
[2018-01-08T00:22:58,367][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}  
[2018-01-08T00:23:01,888][INFO][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=\>{:removed=\>[], :added=\>[[https://5something3.us-east-1.aws.found.io:9243/](https://5something3.us-east-1.aws.found.io:9243/)]}}  
[2018-01-08T00:23:01,899][INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck\_url=\>[https://5something3.us-east-1.aws.found.io:9243/](https://5something3.us-east-1.aws.found.io:9243/), :path=\>"/"}  
[2018-01-08T00:23:07,509][WARN][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"[https://5bsomething3.us-east-1.aws.found.io:9243/](https://5bsomething3.us-east-1.aws.found.io:9243/)", :error\_type=\>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :error=\>"Got response code '401' contacting Elasticsearch at URL '[https://5something3.us-east-1.aws.found.io:9243/](https://5something3.us-east-1.aws.found.io:9243/)'"}

---

<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:** [January 8, 2018, 2:46am UTC](https://discuss.elastic.co/t/set-logstash-cloud-output-hosts/114435/2 "2018-01-08T02:46:53Z")

</div>

You should need to put in authentication details.

---

<div class="post-metadata">

**Author:** ![Amir\_P](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Amir\_P](https://discuss.elastic.co/u/Amir_P)\
**Post date:** [January 8, 2018, 6:39am UTC](https://discuss.elastic.co/t/set-logstash-cloud-output-hosts/114435/3 "2018-01-08T06:39:29Z")

</div>

Could you give me an example 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:** [January 8, 2018, 6:53am UTC](https://discuss.elastic.co/t/set-logstash-cloud-output-hosts/114435/4 "2018-01-08T06:53:36Z")

</div>

[https://www.elastic.co/guide/en/logstash/6.1/plugins-inputs-elasticsearch.html#plugins-inputs-elasticsearch-options](https://www.elastic.co/guide/en/logstash/6.1/plugins-inputs-elasticsearch.html#plugins-inputs-elasticsearch-options), specifically `user` and `password`.

---

<div class="post-metadata">

**Author:** ![Amir\_P](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Amir\_P](https://discuss.elastic.co/u/Amir_P)\
**Post date:** [January 8, 2018, 7:26am UTC](https://discuss.elastic.co/t/set-logstash-cloud-output-hosts/114435/5 "2018-01-08T07:26:35Z")

</div>

Can I set the authentication details in the input? I set the input to be a CSV file, can it be both?

---

<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:** [January 8, 2018, 7:27am UTC](https://discuss.elastic.co/t/set-logstash-cloud-output-hosts/114435/6 "2018-01-08T07:27:44Z")

</div>

Sorry, [https://www.elastic.co/guide/en/logstash/6.1/plugins-outputs-elasticsearch.html#plugins-inputs-elasticsearch-options](https://www.elastic.co/guide/en/logstash/6.1/plugins-outputs-elasticsearch.html#plugins-inputs-elasticsearch-options).

---

<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 5, 2018, 7:28am UTC](https://discuss.elastic.co/t/set-logstash-cloud-output-hosts/114435/7 "2018-02-05T07:28:03Z")

</div>

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