tagomoris / fluent-plugin-secure-forward

Other
140 stars 30 forks source link

Secondary support for secure_forward #8

Closed hernandesbsousa closed 10 years ago

hernandesbsousa commented 10 years ago

Hi,

Currently if we try to use the <secondary> tag that works on out_forward we get an error

 [error]: config error file="/etc/td-agent/td-agent.conf" error="unknown config tag name secondary"

It'd be nice to have a fallback in case all servers are not available.

tagomoris commented 10 years ago

It's a bug! I'll fix it ASAP.

tagomoris commented 10 years ago

Fixed on c7dffc4a1e51b89ae5df42bafa268eb8fda19043, and released v0.2.0. Thank you for reporting!

hernandesbsousa commented 10 years ago

Check my comment on your commit @tagomoris , it doesn't change anything I believe since it's on your test only, but the test should be path /test/aaa instead of <server>server</server>

tagomoris commented 10 years ago

I'm sorry that I missed your comment. <secondary> section can have any plugin configurations. For example, type file + path /test/aaa, Or, type forward + <server>...</server>. Any plugin configurations are available in <secondary>. So that commit c7dffc4a1e51b89ae5df42bafa268eb8fda19043 is valid test.