Skip to content

Commit

Permalink
allow loghost concentrator to work with no targets
Browse files Browse the repository at this point in the history
  • Loading branch information
psycofdj committed Sep 30, 2022
1 parent 4d25d46 commit 2f8878a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jobs/loghost_concentrator/templates/rsyslog-loghost.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ if ($structured-data contains "instance@47450") then {
<% value.fetch("targets").each do |forward| %>
action(type="omfwd" Target="<%= forward.fetch('address') %>" Port="<%= forward.fetch('port') %>" Protocol="<%= forward.fetch('transport') %>" Template="ForwardTemplate" <% if_p('loghost_concentrator.syslog.tls.cert') do |v| %> StreamDriver="gtls" StreamDriverMode="1" StreamDriverAuthMode="x509/certvalid" <% end %>)
<% end %>
<% if value.fetch("targets").empty? %>
continue
<% end %>
}
<% end %>
<% end %>
Expand Down

0 comments on commit 2f8878a

Please sign in to comment.