You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change adds a new feature in splunk hec receiver allowing users to
specify time query parameter. This is to put parity between splunk hec
receiver and splunk HEC raw endpoint
Note: the validation response is slightly different than what splunk
returns. if invalid input is provided for time:
- splunk returns 400 response with this error message:
```
{
"text": "Error in handling indexed fields",
"code": 15,
"invalid-event-number": 0
}
```
- however this doesn't make sense for splunk hec receiver as it is not
indexing anything. Instead, splunk hec receiver will return:
```
{"text":"Invalid data format","code":6}
```
Fixesopen-telemetry#27006
---------
Co-authored-by: Antoine Toulme <[email protected]>
Component(s)
receiver/splunkhec
Is your feature request related to a problem? Please describe.
Current Splunk HEC raw endpoint allows
time
query parameter. However, splunk hec receiver doesn't expose this query parameter.To maintain parity between two endpoints,
time
parameter should be accepted and passed into the event timestamp.Describe the solution you'd like
Extracts
time
in query parameter in the methodsplunkHecRawToLogData
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: