anchor.diff:  # Generated by Chef
  +<% @servers.each.with_index(1) do |server, index| -%>
   $ActionQueueType LinkedList # use asynchronous processing
  -$ActionQueueFileName srvrfwd # set file name, also enables disk mode
  +$ActionQueueFileName srvrfwd<%= index %> # set file name, also enables disk mode
   $ActionResumeRetryCount -1 # infinite retries on insert failure
   $ActionQueueSaveOnShutdown on # save in-memory data if rsyslog shuts down
   $ActionQueueMaxDiskSpace <%= node['rsyslog']['action_queue_max_disk_space'] %> # Don't use more than this much space for the queue
  
positive.code: <%     else -%>
  <%=      server['logs'] ? server['logs'] : node['rsyslog']['logs_to_forward'] %><%= node['rsyslog']['protocol'] == "tcp" ? " @@" : " @" %><%= server['server']  %>:<%= server['port'] ? server['port'] : node['rsyslog']['port'] %><%= server['remote_template'] ? ';' + server['remote_template'] : nil %>
  <%   end -%>
  <% end -%>
  
negative.code: <% end -%>
  <% end -%>
  
  <%   case server['protocol'] -%>
  <%     when "tcp" -%>
  <%=      server['logs'] ? server['logs'] : node['rsyslog']['logs_to_forward'] %> @@<%= server['server']  %>:<%= server['port'] ? server['port'] : node['rsyslog']['port'] %><%= server['remote_template'] ? ';' + server['remote_template'] : nil %>
  