-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[SplunkHecReceiver] Align receiver errors messages to splunk enterprise #19219
Comments
What does no data mean? An empty HTTP request or a request with no event? What is the difference between "no data" and "invalid data format"? What exactly is the format of the response? Can you give an example? |
yeah there is more documentation on the endpoint page. But for splunk enterprise, the "No data" error is returned if the payload is rejected. This can be because the payload has invalid quotes. In the context of SplunkHECReceiver, it might be more fitting to return "Invalid Data Format" instead since this is just a decoding problem. The http response status code would be 400 and its body would look like:
|
Is the code 6 attribute defined somewhere? |
yeah it is defined in the response documentation on the page (expand under "Send events to the HTTP Event Collector.").
|
@atoulme i will be working on this. |
|
|
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Re-commenting this thread again as one of the user runs into this problem. the HTTP client is expecting a json response like We can work on this so customers moving from Splunk HEC to EP HEC doesn't have to make any changes. |
…#24604) **Description:** Changed `200` response body from plaintext to JSON object: `"OK"` → `{"text": "Success", "code": 0}`. **Testing:** Updated existing unit tests to reflect the new response body. Everything passes as expected. **Documentation:** https://docs.splunk.com/Documentation/Splunk/9.0.4/RESTREF/RESTinput **Link to Tracking Issue:** #19219
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Is your feature request related to a problem? Please describe.
Currently the HEC receiver error messages and HTTP status code is different than splunk enterprise.
Describe the solution you'd like
Some of the HTTP responses should be implemented:
Describe alternatives you've considered
N/A
The text was updated successfully, but these errors were encountered: