-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
out_splunk: remove raw endpoint #9007
Conversation
Fixes fluent#8927. This does **not** remove the ability to send raw events, i.e. using `Splunk_Send_Raw On`, but rather sends them to correct endpoint. Signed-off-by: Philip Meier <[email protected]>
5c48024
to
b83bda1
Compare
is |
@edsiper Could you define what exactly you mean by "raw events"? The term has a different meaning in |
I will double check on this, cannot remember all the details of the raw endpoint and why I implemented on that way at that moment (asking other maintainer to take a look at this too), thank you. |
From the Splunk official docs, Fluent Bit needs to add
ref: https://docs.splunk.com/Documentation/Splunk/9.2.1/RESTREF/RESTinput#services.2Fcollector.2Fraw It seems that raw event point can handle JSON type of logs. Because the examples contain JSON case of sending payload. However, Splunk's documents may complicated in this case. Because without indexer acknowledgement there is not necessity to use channels.
If we use only for structured data, we're able to remove raw endpoint from out_splunk. However, I observed that raw endpoint without index acknowledgement can handle raw JSON events via raw endpoint. Plus, if we remove raw endpoint and no needed to use specifying a raw endpoint, we need to remove splunk_send_raw config map which is defined here: https://github.com/fluent/fluent-bit/blob/master/plugins/out_splunk/splunk.c#L919-L925 |
Yeah, but if the event endpoint does what we want and we never sent raw strings, there is no point to ever trying to sent something to the raw endpoint. Hence, this PR.
That is not what we want. The "raw mode" in When |
Ah, I got it. So, using raw endpoint is currently not efficient and inappropriate in fluent-bit. This motivation is what I wanted to know. Really appreciated to describe. I realized that this change should be reasonable. But, the behavior changes should be described in fluent-bit's documentation properly. Here is out_splunk's documentation: https://github.com/fluent/fluent-bit-docs/blob/master/pipeline/outputs/splunk.md#sending-raw-events I also understand what you mean in this PR. This |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand the motivation in this PR. Currently, not modifying logs types of events should be treated as structured logs and sometimes they are used as adopted a format of Splunk metrics. For such cases, it is inappropriate usages for raw endpoint. In addition, there is no necessity to be existing raw endpoint for now.
The documentation currently doesn't say anything about the endpoint the data is being sent to. I think this is fine given that this is more of an implementation detail of As for documenting the change: |
thanks everybody |
Fixes #8927. This does not remove the ability to send raw events, i.e. using
Splunk_Send_Raw On
, but rather sends them to correct endpoint.Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-test
label to test for all targets (requires maintainer to do).Documentation
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.