Ben's notes

Linux, Unix, network, radio...

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 revisionPrevious revision
Last revisionBoth sides next revision
rsyslog_central_loghost [2014/06/24 19:14] – [rsyslog - central loghost] adminrsyslog_central_loghost [2014/06/24 19:19] 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: 2021/10/09 15:14 by 127.0.0.1