2021年8月21日 星期六

Rsyslog dispatch to different log file by msg and programname

由 Log 訊息包含字串區分
:msg, contains, "Error" /var/log/error.log

由程式名稱區分
:programname, isequal, "prog" /var/log/prog.log

ref. https://www.rsyslog.com/doc/master/configuration/filters.html

沒有留言:

RouterOS Adlist

RouterOS 7.15 版開始,DNS 支援 Adlist,可用 URL 直接載入 hosts,實現類似 Pi-Hole 的功能 預設的 cache-size 2048K 不夠大, 載入時超出限制 Log 中會出現 [adlist] adlist read: max cach...