Graylog2 / Graylog2/graylog2-server
HTTP Poll inputs do not log info about input when logging an error
- Dominant language
- Java
- Stars
- 8.1k
- Forks
- 1.1k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 217
Description
HTTP Poll inputs (e.g. `JSON path value from HTTP API`) will log an error in Graylog's log (e.g. `server.log`) if the HTTP status is non success ( >= 400 ).
However, this log message does not provide information about which input and requires the Graylog admin to look through each individual applicable input (of which there isn't a great way to do).
This is the only thing that is logged:
```
2026-01-27T21:42:11.251Z ERROR [org.graylog2.inputs.transports.HttpPollTransport] Expected successful HTTP status code [2xx], got 404
```
## Expected Behavior
Actionable errors include information required to resolve the error.
## Current Behavior
Error message does not provide information to resolve, requires extra work/labor from graylog admin
## Possible Solution
Include the input name and id in the emitted log.
## Steps to Reproduce (for bugs)
1. Configure `JSON path value from HTTP API` input
2. Have it poll a URL that returns a non success http status (e.g. >= 400 )
## Context
## Your Environment
* Graylog Version: 7.0.3
## Checklist
[] This issue fix need to be backported.
[] Does this issue have **security** implications?
Contributor guide
Assessment
This issue has not been assessed yet.