LoginSignup
0
0

More than 3 years have passed since last update.

rsyslogでsecureログの分離

Posted at

NLB→OSのヘルチェックでport22利用する場合のヘルスチェックログ退避

/etc/rsyslog.conf 例

if ($programname == 'sshd') and ($msg contains 'from 192.168.1.xxx' or $msg contains 'from 172.16.xxx.xxx') then /var/log/nlbhc.log
&~
authpriv.*                                              /var/log/secure

/var/log/nlbhc.log のログローテ

/etc/logrotate.d/syslog で設定

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0