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

http plugin blocks stats API #51

Closed
robin13 opened this issue May 6, 2016 · 4 comments
Closed

http plugin blocks stats API #51

robin13 opened this issue May 6, 2016 · 4 comments
Assignees
Labels

Comments

@robin13
Copy link

robin13 commented May 6, 2016

Please post all product and debugging questions on our forum. Your questions will reach our wider community members there, and if we confirm that there is a bug, then we can open a new issue here.

For all general issues, please provide the following details for fast resolution:

  • Version: Logstash 5.0.0 alpha2

If you start logstash with this configuration:

input {
    http {
      port => 31311 # default: 8080
      type => "WEBHOOK"
    }
}

filter {
}

output {
  stdout { codec => rubydebug }
}

And start logstash:

./bin/logstash --http-host=127.0.0.1 --http-port=9601 -f /path/to/logstash.conf

The stats API will return:

curl http://localhost:9601/_node/stats?pretty
{
  "hostname" : "es-rclarke",
  "version" : {
    "number" : "5.0.0-alpha2"
  }
}

rather than the expected jvm / events details.

@purbon
Copy link

purbon commented May 26, 2016

is not only _node/stats is also other resources, see

skywalker% curl http://localhost:9600/
{"hostname":"skywalker","version":{"number":"5.0.0-alpha2"}}%

skywalker% curl http://localhost:9600/_stats
{"hostname":"skywalker","version":{"number":"5.0.0-alpha2"}}%

skywalker% curl http://localhost:9600/_plugins
{"hostname":"skywalker","version":{"number":"5.0.0-alpha2"}}%

skywalker% curl http://localhost:9600/_node
{"hostname":"skywalker","version":{"number":"5.0.0-alpha2"}}%

might be that having two rack apps bootstrap create confusions somehow?

@purbon
Copy link

purbon commented May 26, 2016

I confirm this behaviour happens in master and the great webapi refactor undertaken by @andrewvc at elastic/logstash#5307

@jsvd
Copy link
Member

jsvd commented Jun 2, 2016

@purbon #5307 was merged, does it mean we can close this?

@purbon
Copy link

purbon commented Jun 10, 2016

naturlish

@purbon purbon closed this as completed Jun 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants