FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


middleware:rsyslog:syslog-server.html



Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
middleware:rsyslog:syslog-server.html [2018/01/28 23:01]
kurihara
middleware:rsyslog:syslog-server.html [2018/04/19 00:11] (current)
kurihara
Line 45: Line 45:
 #============================================================= #=============================================================
 # Syslog Server Rule # Syslog Server Rule
-$template RemoteHost, "/var/log/rsyslog/%hostname%/%hostname%.%$year%%$month%%$day%.log"+$template RemoteHost, "/var/log/rsyslog/%$year%/%$month%/%$day%/%hostname%.%$year%%$month%%$day%.log"
 :fromhost-ip, !isequal, "127.0.0.1" -?RemoteHost :fromhost-ip, !isequal, "127.0.0.1" -?RemoteHost
 & ~ & ~
Line 58: Line 58:
 local7.*                                                /var/log/boot.log local7.*                                                /var/log/boot.log
  
 +
 +# Max messages is 10000 messages in 30 seconds
 +# you must change /etc/systemd/journald.conf.
 +$imjournalRatelimitInterval 30
 +$imjournalRatelimitBurst 10000
 </sxh> </sxh>
  
Line 65: Line 70:
 ===== Note ===== ===== Note =====
 ==== Template ==== ==== Template ====
 +
 +<sxh bash toolbar:false gutter:false>
 +# Template name is RemoteHost
 +$template RemoteHost, "/var/log/rsyslog/%hostname%/%hostname%.%$year%%$month%%$day%.log"
 +:fromhost-ip, !isequal, "127.0.0.1" -?RemoteHost
 +& ~
 +</sxh>
 +
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 # Template name is RemoteHost # Template name is RemoteHost


middleware/rsyslog/syslog-server.html.1517148102.txt.gz ยท Last modified: 2018/01/28 23:01 by kurihara