Life is fun and easy!
不正IP報告数
Okan Sensor
ページへ戻る
印刷
MacOS X/Server/syslog.conf
をテンプレートにして作成 ::
UJP
tech_regist2
:MacOS X/Server/syslog.conf をテンプレートにして作成
開始行:
TITLE:syslog.confでmailのログ出力レベルを変更する
*メールのログがシンプルすぎて困る
折角posftfixのmaillogを分析しようと[[pflogsumm:http://w...
**現状確認
MacOS Xの場合,メールログは,/var/log/mail.logとして設...
deliver(root): Feb 13 23:10:01 Info: msgid=<201402131410...
deliver(root): Feb 13 23:15:00 Info: msgid=<201402131415...
これはメールがメールが着信した時にこれが出るだけで,送...
**syslog設定の変更
現在のログ設定を確認してみる.
bash-3.2# grep mail /private/etc/syslog.conf
*.err;kern.*;auth.notice;authpriv,remoteauth,install.non...
*.notice;kern,authpriv,remoteauth,ftp,install.none;mail....
#*.err;kern.*;auth.notice;authpriv,remoteauth.none;mail....
mail.warn /var/log/mail.log
local6.err /var/log/mailaccess.log
local5.crit /var/log/securityproxy/mail_error.log
local3.crit /var/log/securityproxy/mail_access.log
bash-3.2#
mail.warnとなっている.これを変更する.
bash-3.2# grep mail /private/etc/syslog.conf
*.err;kern.*;auth.notice;authpriv,remoteauth,install.non...
*.notice;kern,authpriv,remoteauth,ftp,install.none;mail....
#*.err;kern.*;auth.notice;authpriv,remoteauth.none;mail....
#mail.warn /var/log/mail.log&br; mail.* /var...
local6.err /var/log/mailaccess.log
local5.crit /var/log/securityproxy/mail_error.log
local3.crit /var/log/securityproxy/mail_access.log
bash-3.2#
**syslogdの再起動
まずはプロセスIDを確認する.
bash-3.2# ps -ef|grep syslog
0 1302 1 0 0:09.42 ?? 0:20.09 /usr/...
0 73939 67933 0 0:00.00 ttys002 0:00.00 grep ...
bash-3.2#
1302番で起動している模様.これをlaunchctlコマンドを使っ...
bash-3.2# launchctl unload /System/Library/LaunchDaemons...
bash-3.2#
プロセスを確認してみる.
bash-3.2# ps -ef|grep syslog
0 74100 1 0 0:00.05 ?? 0:00.11 /usr/...
0 74197 67933 0 0:00.00 ttys002 0:00.00 grep ...
bash-3.2#
プロセスIDが変わっている.
終了行:
TITLE:syslog.confでmailのログ出力レベルを変更する
*メールのログがシンプルすぎて困る
折角posftfixのmaillogを分析しようと[[pflogsumm:http://w...
**現状確認
MacOS Xの場合,メールログは,/var/log/mail.logとして設...
deliver(root): Feb 13 23:10:01 Info: msgid=<201402131410...
deliver(root): Feb 13 23:15:00 Info: msgid=<201402131415...
これはメールがメールが着信した時にこれが出るだけで,送...
**syslog設定の変更
現在のログ設定を確認してみる.
bash-3.2# grep mail /private/etc/syslog.conf
*.err;kern.*;auth.notice;authpriv,remoteauth,install.non...
*.notice;kern,authpriv,remoteauth,ftp,install.none;mail....
#*.err;kern.*;auth.notice;authpriv,remoteauth.none;mail....
mail.warn /var/log/mail.log
local6.err /var/log/mailaccess.log
local5.crit /var/log/securityproxy/mail_error.log
local3.crit /var/log/securityproxy/mail_access.log
bash-3.2#
mail.warnとなっている.これを変更する.
bash-3.2# grep mail /private/etc/syslog.conf
*.err;kern.*;auth.notice;authpriv,remoteauth,install.non...
*.notice;kern,authpriv,remoteauth,ftp,install.none;mail....
#*.err;kern.*;auth.notice;authpriv,remoteauth.none;mail....
#mail.warn /var/log/mail.log&br; mail.* /var...
local6.err /var/log/mailaccess.log
local5.crit /var/log/securityproxy/mail_error.log
local3.crit /var/log/securityproxy/mail_access.log
bash-3.2#
**syslogdの再起動
まずはプロセスIDを確認する.
bash-3.2# ps -ef|grep syslog
0 1302 1 0 0:09.42 ?? 0:20.09 /usr/...
0 73939 67933 0 0:00.00 ttys002 0:00.00 grep ...
bash-3.2#
1302番で起動している模様.これをlaunchctlコマンドを使っ...
bash-3.2# launchctl unload /System/Library/LaunchDaemons...
bash-3.2#
プロセスを確認してみる.
bash-3.2# ps -ef|grep syslog
0 74100 1 0 0:00.05 ?? 0:00.11 /usr/...
0 74197 67933 0 0:00.00 ttys002 0:00.00 grep ...
bash-3.2#
プロセスIDが変わっている.
ページ名: