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

Replace _xpack/monitoring/* with _monitoring/* ES API calls #10207

Closed
ycombinator opened this issue Dec 10, 2018 · 4 comments
Closed

Replace _xpack/monitoring/* with _monitoring/* ES API calls #10207

ycombinator opened this issue Dec 10, 2018 · 4 comments
Labels
monitoring x-pack Issues involving X-Pack features

Comments

@ycombinator
Copy link
Contributor

Starting 7.0, the _xpack/monitoring/* API endpoints in Elasticsearch will be deprecated in favor of monitoring/* API endpoints. We should update any references to the deprecated endpoints in the Logstash codebase and replace them with the new ones.

@ycombinator ycombinator added monitoring x-pack Issues involving X-Pack features labels Dec 10, 2018
@jsvd
Copy link
Member

jsvd commented Dec 11, 2018

Thanks for raising this, looking at the code we only seem to have two references to _xpack in the code (a few more in the tests):

% grep "['\"/]_xpack" x-pack/lib logstash-core/lib lib/ -r
x-pack/lib/license_checker/license_reader.rb:          response = client.get('_xpack')
x-pack/lib/template.cfg.erb:    bulk_path => "/_xpack/monitoring/_bulk?system_id=logstash&system_api_version=<%= system_api_version %>&interval=1s"

@ycombinator do you know if the license checks currently being done against /_xpack will be renamed too?

@ycombinator
Copy link
Contributor Author

GET _xpack is going to stay as-is. However, we might want to separately consider switching the license check to use GET _license instead of GET _xpack if possible.

@jsvd
Copy link
Member

jsvd commented Dec 3, 2019

fixed in #10528

@jsvd jsvd closed this as completed Dec 3, 2019
@jsvd
Copy link
Member

jsvd commented Dec 3, 2019

created #11382 to track the license checking path update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
monitoring x-pack Issues involving X-Pack features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants