2021年11月9日 星期二

Rsyslog discards rest

& stop
舊式寫法 & ~

表示忽略剩下的 Rule,不繼續走,沒加的話會把 rsyslog.conf 的 Rule 走完
要把某一類的 Log 獨立出來,在 /etc/rsyslog.d 建立 conf,conf 裡面最後寫 & stop,沒加的話預設的 messages 也會出現

例如: /etc/rsyslog.d/haproxy.conf

local2.* /var/log/haproxy.log
& stop

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

沒有留言:

Certificate lifetime reduce to 47 days after 2029-03-15

在 2020年九月,憑證效期縮短為 398 天 爾後最新標準是 47 天,原因一樣是資安考量,分三個階段逐步調整 執行時間表 2026-03-15 縮短成 200 天 2027-03-15 縮短成 100 天 2029-03-15 縮短成 47 天 圖片來源 Sectigo r...