fluent-operator icon indicating copy to clipboard operation
fluent-operator copied to clipboard

bug: fluentd splunk output is missing

Open maxkokocom opened this issue 3 years ago • 10 comments

Describe the issue

When applying Fluentd ClusterOutput with splunk output the resource fields validation fails.

I am deploying operator via kubectl apply -f https://raw.githubusercontent.com/fluent/fluentbit-operator/master/manifests/setup/setup.yaml which should deploy operator as it is on master. I can see splunk MR was recently merged.

error validating data: ValidationError(ClusterOutput.spec.outputs[0]): unknown field "splunk" in io.fluent.fluentd.v1alpha1.ClusterOutput.spec.outputs; if you choose to ignore these errors, turn validation off with --validate=false

To Reproduce

spec:
  outputs:
  - splunk:
      host: https://splunk.xxx
      port: 8443
      eventIndex:  "k8s_fluent_operator_testing"
      splunkToken:
        valueFrom:
            secretKeyRef:
              name: fluentd-splunk
              key: splunk-http-token

Expected behavior

It should apply successfully.

Your Environment

- Fluent Operator version: master
- Container Runtime: containerd 
- Operating system: amazon linux
- Kernel version:

How did you install fluent operator?

kubectl apply -f https://raw.githubusercontent.com/fluent/fluentbit-operator/master/manifests/setup/setup.yaml

Additional context

No response

maxkokocom avatar Oct 24 '22 08:10 maxkokocom

@wenchajun

benjaminhuo avatar Oct 25 '22 02:10 benjaminhuo

@Gentleelephant would you take a look at this? @wenchajun can help you if necessary.

benjaminhuo avatar Oct 25 '22 02:10 benjaminhuo

If you want to use the splunk plugin, you should configure fluentbit instead of fluentd. like this apiVersion: fluentbit.fluent.io/v1alpha2

Gentleelephant avatar Oct 25 '22 03:10 Gentleelephant

Ohh sorry I did not realised it works only for fluent-bit. What about a HA setup when I deploy both of them in the forwarder/aggregator pattern? I want to deploy fluent-bit as a forwarder to fluentd, and then fluentd would output to splunk. I need some fluentd plugins, while making it a bit better performance and scalability wise.

maxkokocom avatar Oct 25 '22 09:10 maxkokocom

Do you want to use fluentbit+fluentd mode? https://github.com/kubesphere-sigs/fluent-operator-walkthrough#fluent-bit--fluentd-mode

Gentleelephant avatar Oct 25 '22 09:10 Gentleelephant

This is the list of fluentd plugins supported by fluent-operator. https://github.com/fluent/fluent-operator/blob/master/docs/plugins/fluentd/index.md

Gentleelephant avatar Oct 25 '22 09:10 Gentleelephant

Hi, yes I am trying to use fluentbit+fluentd mode. Splunk output plugin is missing for fluentd. This is the point of this ticket yes.

maxkokocom avatar Oct 31 '22 02:10 maxkokocom

Hi, yes I am trying to use fluentbit+fluentd mode. Splunk output plugin is missing for fluentd. This is the point of this ticket yes.

OK, then this is not a bug but instead a feature request. We've community contributors who helped to add the fluentbit Splunk output plugin.

benjaminhuo avatar Nov 01 '22 06:11 benjaminhuo

Hi everyone, is there a plan to implement the splunk plugin for fluentd

gopikishanm avatar Aug 04 '23 00:08 gopikishanm

Consider using custom plugin for unsupported plugins https://github.com/fluent/fluent-operator/blob/master/docs/best-practice/custom-plugin.md

benjaminhuo avatar Aug 04 '23 01:08 benjaminhuo