Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Added support for cloud_id and cloud_auth #906

Merged
merged 8 commits into from
Jan 3, 2020

Conversation

kares
Copy link
Contributor

@kares kares commented Dec 16, 2019

should be fairly straight-forward:

  • cloud_id is a substitute for the hosts setting (one can not use both)
  • cloud_auth is an user/password alternative

resolves: #893

TODO documentation for new options

@kares kares changed the title Feat: Added support for --cloud.id --cloud.auth Feat: Added support for cloud_id and cloud_auth Dec 16, 2019
@kares kares marked this pull request as ready for review December 16, 2019 21:17
@elasticsearch-bot elasticsearch-bot self-assigned this Dec 16, 2019
Copy link
Contributor

@robbavey robbavey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of (mostly) minor nits

lib/logstash/outputs/elasticsearch.rb Outdated Show resolved Hide resolved
lib/logstash/outputs/elasticsearch/common.rb Outdated Show resolved Hide resolved
begin # might not be available on older LS
require 'logstash/util/cloud_setting_auth'
rescue LoadError
raise LogStash::ConfigurationError, 'The cloud.auth setting is not supported by LogStash, please set user/password instead.'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nits: cloud.id should read cloud_id to reflect configuration property name
Capitalization of "LogStash" should read Logstash
Maybe state that the setting is not supported by this version of Logstash, as later versions do support it.

Copy link
Contributor

@robbavey robbavey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - @karenzone can you take a look at the docs for this plugin (might we also want to add a reference to this in the cloud id usage doc in the main Logstash docs?)

@kares
Copy link
Contributor Author

kares commented Jan 3, 2020

circling back here, as this was promised to eventually land in next LS release ...
did try generating docs locally and seemed fine,
Rob's docs suggestions are still relevant but those won't be addressed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Elastic Cloud id
4 participants