mirror of
https://github.com/krislamo/puppet-fluentd
synced 2025-09-11 16:19:29 +00:00
added fluentd::filter definition
This commit is contained in:
13
templates/filter.erb
Normal file
13
templates/filter.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<filter <%= @pattern %>>
|
||||
<% @config.each do |key, val| -%>
|
||||
<%- if val.is_a?( Hash ) -%>
|
||||
<<%= key -%>>
|
||||
<%- val.each do |key, val| -%>
|
||||
<%= key -%> <%= val %>
|
||||
<%- end -%>
|
||||
</<%= key %>>
|
||||
<%- else -%>
|
||||
<%= key -%> <%= val %>
|
||||
<%- end -%>
|
||||
<% end -%>
|
||||
</filter>
|
Reference in New Issue
Block a user