27 lines
646 B
Text
27 lines
646 B
Text
# Local udp/tcp syslog configuration managed by Puppet (soc::rsyslog)
|
|
#
|
|
|
|
<% if @udp_port -%>
|
|
module(load="imudp")
|
|
input(type="imudp" port="<%= @udp_port %>")
|
|
<% end -%>
|
|
|
|
<% if @tcp_port -%>
|
|
module(load="imtcp")
|
|
input(type="imtcp" port="<%= @tcp_port %>")
|
|
<% end -%>
|
|
|
|
<% if @relp_port -%>
|
|
module(load="imrelp")
|
|
input(
|
|
type="imrelp"
|
|
port="<%= @relp_port %>"
|
|
maxDataSize="10k"
|
|
oversizeMode="truncate")
|
|
<% end -%>
|
|
|
|
# Split remote hosts to separate logs for easier reading
|
|
# make sure local logs still are sent to default files
|
|
$template RemoteHost,"/var/log/remote/%HOSTNAME%/syslog.log
|
|
if ($fromhost-ip != "127.0.0.1") then ?RemoteHost
|
|
& ~
|