# Using Cloud.id and Cloud.auth in logstash

**URL:** <https://discuss.elastic.co/t/using-cloud-id-and-cloud-auth-in-logstash/234336>\
**Category:** Logstash\
**Created:** [May 26, 2020, 12:44pm UTC](https://discuss.elastic.co/t/using-cloud-id-and-cloud-auth-in-logstash/234336 "2020-05-26T12:44:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Apollyon](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Apollyon](https://discuss.elastic.co/u/Apollyon)\
**Post date:** [May 26, 2020, 12:44pm UTC](https://discuss.elastic.co/t/using-cloud-id-and-cloud-auth-in-logstash/234336/1 "2020-05-26T12:44:45Z")

</div>

Hello All,

I've been playing around with Logstash recently and thought it'll be cool to pick your lots brain about something.

When in the logstash.yml, I place the cloud.id and cloud.auth, which is well and ok. But then when I go to output data, in a .conf file, I leave out the username and password to the host url (as the cloud.id/ cloud.auth should cover that) but I keep getting a '401 error'. But then when I put a username and password in the output it works.

Does this mean that the cloud.id/ cloud.auth set up isn't working in Logstash? (it works in all the beats that I have set up) or am I missing something?

I found a post on the discussion page from another person about this but no real answer or reasoning to why ([Using cloudid in logstash](https://discuss.elastic.co/t/using-cloudid-in-logstash/186057)).

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 26, 2020, 3:03pm UTC](https://discuss.elastic.co/t/using-cloud-id-and-cloud-auth-in-logstash/234336/2 "2020-05-26T15:03:13Z")

</div>

Which version are you using? Support for cloud.id/auth was added in 7.6.0.

---

<div class="post-metadata">

**Author:** ![Apollyon](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Apollyon](https://discuss.elastic.co/u/Apollyon)\
**Post date:** [May 26, 2020, 3:07pm UTC](https://discuss.elastic.co/t/using-cloud-id-and-cloud-auth-in-logstash/234336/3 "2020-05-26T15:07:07Z")

</div>

Hey @Badger,

Ah missed that out!

The Logstsash that is in use is 7.7.0.

---

<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 23, 2020, 3:07pm UTC](https://discuss.elastic.co/t/using-cloud-id-and-cloud-auth-in-logstash/234336/4 "2020-06-23T15:07:18Z")

</div>

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