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
Is your feature request related to a problem? Please describe.
The HEC receiver handleRaw method uses a bufio Scanner that uses the default splitFunc. As an user of splunk hec receiver, I want an option to configure the bufio Scanner to disable line breaking functionality.
Background
Our team has much more extensive line breaking functionality(and will need to support more) so we want to handle line breaking inside our processor. If the events are line broken already at the receiver, our processor can't properly line break.
an example is if the event abc\r\n\r\nefg comes in, the user might want to configure to split based on \r\n\r\n but bufio scanner would behave differently.
So instead, we want line breaking to be disabled in receiver all completely.
Describe the solution you'd like
We want to add an option in the config to disable line breaking completely. So the whole raw event will be sent as one single log record.
Component(s)
receiver/splunkhec
Is your feature request related to a problem? Please describe.
The HEC receiver
handleRaw
method uses a bufio Scanner that uses the default splitFunc. As an user of splunk hec receiver, I want an option to configure the bufio Scanner to disable line breaking functionality.Background
Our team has much more extensive line breaking functionality(and will need to support more) so we want to handle line breaking inside our processor. If the events are line broken already at the receiver, our processor can't properly line break.
abc\r\n\r\nefg
comes in, the user might want to configure to split based on\r\n\r\n
but bufio scanner would behave differently.So instead, we want line breaking to be disabled in receiver all completely.
Describe the solution you'd like
We want to add an option in the config to disable line breaking completely. So the whole raw event will be sent as one single log record.
Add an option in splunkhecreceiver:
inside handleRaw method:
Describe alternatives you've considered
N/A
Additional context
No response
The text was updated successfully, but these errors were encountered: