0
我需要登錄登錄mysql的用戶。日誌mysql連接到遠程rsyslog
隨着imfile模塊我從本地MySQL日誌
input(type="imfile"
File="/var/log/mysql/mysql.log"
Tag="mysql-general"
Severity="warning"
Facility="local1")
我把它發送到遠程服務器(它的工作)讀取。
但我只需要發送帶有「連接」一詞的行,而不是所有的消息。
我嘗試:
if $syslogtag == 'mysql-general' and $msg contains 'Connect' then @*.*.*.*
它仍然洛anythings。有任何想法嗎?