Ben Stienstra

Linux, Unix, network, radio and more...

User Tools

Site Tools


rsyslog_central_loghost

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
rsyslog_central_loghost [2014/06/24 21:14]
admin [rsyslog - central loghost]
rsyslog_central_loghost [2014/06/24 21:19] (current)
admin
Line 31: Line 31:
 #​$ActionFileEnableSync on</​code>​ #​$ActionFileEnableSync on</​code>​
     * /​etc/​rsyslog.d/​2-loghost.conf <​code>#​ This one is the template to generate the log filename dynamically,​ depending on the client'​s IP address.     * /​etc/​rsyslog.d/​2-loghost.conf <​code>#​ This one is the template to generate the log filename dynamically,​ depending on the client'​s IP address.
-$template FILENAME,"/​var/​log/​remote/​%fromhost-ip%-syslog.log"​+$template FILENAME,"/​var/​log/​remote/​%HOSTNAME%-syslog.log"​
  
 # Log all messages not from localhost to the dynamically formed file. # Log all messages not from localhost to the dynamically formed file.
rsyslog_central_loghost.txt ยท Last modified: 2014/06/24 21:19 by admin