-
Notifications
You must be signed in to change notification settings - Fork 6
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
Transport attribut in source #20
Comments
@nevinet I believe changing your puppet code to the following should work:
The 'tag_pattern' property is used to add in the "attribute" in the block header, but not the footer, And here: https://github.com/EncoreTechnologies/puppet-fluentd/blob/master/lib/fluent/config.rb#L42-L46 Please let me know if this works for you so i can close this issue. |
Dear Nick
Thank you for your verification and reply.
I‘ll check it this weekend.
I‘m undersnowed with the change of residence.
KR
Nelson
… Am 02.11.2021 um 15:37 schrieb Nick Maludy ***@***.***>:
@nevinet I believe changing your puppet code to the following should work:
fluentd::config { '001_messageprocessing.conf':
config => {
'source' => {
***@***.***_level' => 'info',
***@***.***' => "Collector-${location}",
***@***.***' => 'forward',
'port' => 24228,
'transport' => {
'tag_pattern' => 'tls',
'cert_path' => "${sshpath}/fluentd.crt",
'private_key_path' => "${sshpath}/fluentd.key",
'private_key_passphrase' => "${fluent_cert_passphrase}",
}
},
}
The 'tag_pattern' property is used to add in the "attribute" in the block header, but not the footer,
The code for this is here: https://github.com/EncoreTechnologies/puppet-fluentd/blob/master/lib/fluent/config.rb#L22-L23
And here: https://github.com/EncoreTechnologies/puppet-fluentd/blob/master/lib/fluent/config.rb#L42-L46
Please let me know if this works for you so i can close this issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Dear Nick
I hope you had a nice xmas time.
It works perfectly with your input.
Thank you for the hint and this awesome class.
Kind regards and
a happy new year
Nelson Vieira
Von: Nick Maludy ***@***.***>
Antworten an: EncoreTechnologies/puppet-fluentd ***@***.***>
Datum: Dienstag, 2. November 2021 um 15:37
An: EncoreTechnologies/puppet-fluentd ***@***.***>
Cc: nevinet ***@***.***>, Mention ***@***.***>
Betreff: Re: [EncoreTechnologies/puppet-fluentd] Transport attribut in source (#20)
@nevinet I believe changing your puppet code to the following should work:
fluentd::config { '001_messageprocessing.conf':
config => {
'source' => {
***@***.***_level' => 'info',
***@***.***' => "Collector-${location}",
***@***.***' => 'forward',
'port' => 24228,
'transport' => {
'tag_pattern' => 'tls',
'cert_path' => "${sshpath}/fluentd.crt",
'private_key_path' => "${sshpath}/fluentd.key",
'private_key_passphrase' => "${fluent_cert_passphrase}",
}
},
}
The 'tag_pattern' property is used to add in the "attribute" in the block header, but not the footer,
The code for this is here: https://github.com/EncoreTechnologies/puppet-fluentd/blob/master/lib/fluent/config.rb#L22-L23
And here: https://github.com/EncoreTechnologies/puppet-fluentd/blob/master/lib/fluent/config.rb#L42-L46
Please let me know if this works for you so i can close this issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Dear Encore Technologies
First of all thanks a lot for this module.
I found an issue in the source section with the utilitsation of subattribut "transport tls".
Following code create a config error.
Code:
Config:
The problem is the end of block. Fluentd require following attribut end: and not </transport tls>
https://docs.fluentd.org/configuration/transport-section
May you already face this problem.
Thanks a lot for the verification and a possible fix
Kind regards
nevinet
The text was updated successfully, but these errors were encountered: