# Logstash-outputs-elasticsearch aws endpoint authentication

**URL:** https://discuss.elastic.co/t/logstash-outputs-elasticsearch-aws-endpoint-authentication/68359
**Category:** Logstash
**Created:** [December 7, 2016, 8:04pm UTC](https://discuss.elastic.co/t/logstash-outputs-elasticsearch-aws-endpoint-authentication/68359 "2016-12-07T20:04:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![api-gateway](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@api-gateway](https://discuss.elastic.co/u/api-gateway)
#### Post date: [December 7, 2016, 8:04pm UTC](https://discuss.elastic.co/t/logstash-outputs-elasticsearch-aws-endpoint-authentication/68359/1 "2016-12-07T20:04:05Z")

</div>

Context:  
Using an [Elastic.co](http://Elastic.co) hosted version of ELK (on AWS)  
Attempting to build the filebeat-\>logstash-\>elasticsearch pipeline  
Configured the ouput {elasticsearch {...}} to point to remote stack

During startup of logstash, I am getting a 401 error from the remote stack.

This appears to be an authentication problem; it does work when I point to locally hosted endpoint.

Will someone please provide a working example of hosts/password which addresses this issue?

New to the Forum, thanks for giving this your attention...

--- Paul

---

<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: [December 8, 2016, 1:17am UTC](https://discuss.elastic.co/t/logstash-outputs-elasticsearch-aws-endpoint-authentication/68359/2 "2016-12-08T01:17:19Z")

</div>

Providing the config and the complete error would be helpful.

---

<div class="post-metadata">

### Author: ![api-gateway](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@api-gateway](https://discuss.elastic.co/u/api-gateway)
#### Post date: [December 9, 2016, 1:23am UTC](https://discuss.elastic.co/t/logstash-outputs-elasticsearch-aws-endpoint-authentication/68359/3 "2016-12-09T01:23:25Z")

</div>

Mark --

thx for responding, I did get past that blocking point. It was but a question within the security/authorization setup, now remedied. (to note... some of the security properties have changed w 5.0)

Regards...

--- Paul

---

<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: [January 6, 2017, 1:23am UTC](https://discuss.elastic.co/t/logstash-outputs-elasticsearch-aws-endpoint-authentication/68359/4 "2017-01-06T01:23:40Z")

</div>

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