Skip to content
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

feature: support logstashPrefix to ClusterOutput #268

Merged
merged 6 commits into from
Apr 25, 2022
Merged

feature: support logstashPrefix to ClusterOutput #268

merged 6 commits into from
Apr 25, 2022

Conversation

mangoGoForward
Copy link
Member

Signed-off-by: mango [email protected]

What this PR does / why we need it:

Support logstashPrefix, httpUser and so on to ClusterOutput.

Which issue(s) this PR fixes:

Fixes #265

Does this PR introduced a user-facing change?

Added logstashPrefix, httpUser, tls to ClusterOutput.

Additional documentation, usage docs, etc.:


@mangoGoForward
Copy link
Member Author

/assign @wenchajun

Please have a review if you have free time, thanks.

@benjaminhuo benjaminhuo requested a review from wenchajun April 24, 2022 09:05
@@ -63,7 +63,24 @@ fluentbit:
enable: false
host: "<Elasticsearch url like elasticsearch-logging-data.kubesphere-logging-system.svc>"
port: 9200
path: ""
Copy link
Member

@benjaminhuo benjaminhuo Apr 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd better comment the new added content because they're not required by default. User can remove the comments when they need this

  output:
    es:
      enable: false
      host: "<Elasticsearch url like elasticsearch-logging-data.kubesphere-logging-system.svc>"
      port: 9200
      logstashPrefix: ks-logstash-log
#      path: ""
#      bufferSize: "4KB"
#      index: "fluent-bit"
#      httpUser:
#      httpPassword:
#      logstashFormat: true
#      replaceDots: false
#      enableTLS: false
#      tls:
#        verify: On
#        debug: 1
#        caFile: "<Absolute path to CA certificate file>"
#        caPath: "<Absolute path to scan for certificate files>"
#        crtFile: "<Absolute path to private Key file>"
#        keyFile: "<Absolute path to private Key file>"
#        keyPassword:
#        vhost: "<Hostname to be used for TLS SNI extension>"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -63,7 +63,24 @@ fluentbit:
enable: false
host: "<Elasticsearch url like elasticsearch-logging-data.kubesphere-logging-system.svc>"
port: 9200
logstashPrefix: ks-logstash-log
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logstashPrefix: ks-logstash-log shouldn't be commented

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logstashPrefix set to ks-logstash-log by default in template file, so I think logstashPrefix also should be commented.

# httpUser:
# httpPassword:
# logstashFormat: true
# logstashPrefix: ks-logstash-log
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# logstashPrefix: ks-logstash-log can be removed here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@benjaminhuo benjaminhuo merged commit 9ece3a7 into fluent:master Apr 25, 2022
@mangoGoForward mangoGoForward deleted the feat/es-logstash-prefix-support branch April 26, 2022 00:53
wenchajun pushed a commit to wenchajun/fluentbit-operator that referenced this pull request May 7, 2022
* feature: support `logstashPrefix` to ClusterOutput

Signed-off-by: mango <[email protected]>
wenchajun pushed a commit to wenchajun/fluentbit-operator that referenced this pull request May 10, 2022
* feature: support `logstashPrefix` to ClusterOutput

Signed-off-by: mango <[email protected]>
(cherry picked from commit 9ece3a7)
Signed-off-by: chengdehao <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Helm Chart: fluentbit.output.es.logstashPrefix from values.yaml ignored
3 participants