rsyslog server: add rule to log each host to it's own logfile
This commit is contained in:
parent
a9ac62d9e2
commit
43bebb8332
1 changed files with 6 additions and 0 deletions
|
@ -19,3 +19,9 @@ input(
|
|||
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
|
||||
& ~
|
||||
|
|
Loading…
Add table
Reference in a new issue