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

[inputs.graylog] Error in plugin: has status code 400 (Bad Request) #5081

Closed
lee-costa opened this issue Dec 4, 2018 · 2 comments
Closed

Comments

@lee-costa
Copy link

Relevant telegraf.conf:

[[inputs.graylog]]
servers = [
"http://192.168.2.11:9000/api/system/metrics/multiple",
]
metrics = [
"org.graylog2.journal.size",
"org.graylog2.journal.size-limit",
"org.graylog2.throughput.input.1-sec-rate",
"org.graylog2.throughput.output.1-sec-rate"
]
username = "token"
password = "token"
insecure_skip_verify = true

System info:

[Include Telegraf version, operating system name, and other relevant details]
Telegraf 1.9.0
Ubuntu 16.04

Steps to reproduce:

  1. ...Upgrade Graylog to 2.5
  2. ...Restart telegraf

Expected behavior:

No errors.

Actual behavior:

[inputs.graylog]: Error in plugin: Response from url "http://192.168.2.11:9000/api/system/metrics/multiple" has status code 400 (Bad Request), expected 200 (OK)

Additional info:

[Include gist of relevant config, logs, etc.]

@lee-costa lee-costa changed the title Error in plugin: has status code 400 (Bad Request), expected 200 (OK) [inputs.graylog] Error in plugin: has status code 400 (Bad Request) Dec 4, 2018
@kpointer
Copy link

kpointer commented Dec 4, 2018

Graylog2/graylog2-server#5358

"All API requests now need to set the X-Requested-By HTTP header"

@glinton
Copy link
Contributor

glinton commented Dec 5, 2018

Closing as duplicate of #5010

This will be resolved in 1.9.1

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

No branches or pull requests

3 participants