tagomoris / fluent-plugin-secure-forward

Other
140 stars 30 forks source link

Could I set a backup log destination on a network failure? #23

Closed cherrot closed 9 years ago

cherrot commented 9 years ago

Consider a situation that all the fluentd aggregator (log receiver) were down, I wish my fluentd forwarder could write logs into a backup destination such as local log file. It seems that currently this plugin does not support <secondary> config just like what the out_forward plugin does. Is there a plan for this, or is there any other way to accomplish my requirement? Thanks!

repeatedly commented 9 years ago

<secondary> is a feature of buffered output plugin

secure-forward is a buffered output plugin so <secondary> should work. Did you hit the problem?

cherrot commented 9 years ago

My bad , I forgot to set retry_limit. As a consequence, fluentd would not write to my <secondary> destination after 17 times retry (by default it would happen in 36 hours...) Thanks and sorry for bothering :)

repeatedly commented 9 years ago

np. If you want to cap the retry, max_retry_wait is also useful.