root@hostname:/home/shimizu# aptitude install pflogsumm
以下の新規パッケージがインストールされます:
libbit-vector-perl{a} libcarp-clan-perl{a} libdate-calc-perl{a} libdate-calc-xs-perl{a} pflogsumm
更新: 0 個、新規インストール: 5 個、削除: 0 個、保留: 2 個。
525 k バイトのアーカイブを取得する必要があります。展開後に 1,569 k バイトのディスク領域が新たに消費されます。
先に進みますか? [Y/n/?] y
...
root@hostname:/home/shimizu# pflogsumm /var/log/mail.log
Grand Totals
------------
messages
4 received
0 delivered
0 forwarded
0 deferred
8 bounced
0 rejected (0%)
0 reject warnings
0 held
0 discarded (0%)
3548 bytes received
0 bytes delivered
1 senders
1 sending hosts/domains
0 recipients
0 recipient hosts/domains
Per-Day Traffic Summary
-----------------------
date received delivered deferred bounced rejected
--------------------------------------------------------------------
Nov 16 2014 1 0 0 2
Nov 17 2014 1 0 0 2
Nov 18 2014 1 0 0 2
Nov 19 2014 1 0 0 2
Per-Hour Traffic Daily Average
------------------------------
time received delivered deferred bounced rejected
--------------------------------------------------------------------
0000-0100 0 0 0 0 0
0100-0200 0 0 0 0 0
0200-0300 0 0 0 0 0
0300-0400 0 0 0 0 0
0400-0500 0 0 0 0 0
0500-0600 0 0 0 0 0
0600-0700 1 0 0 2 0
0700-0800 0 0 0 0 0
0800-0900 0 0 0 0 0
0900-1000 0 0 0 0 0
1000-1100 0 0 0 0 0
1100-1200 0 0 0 0 0
1200-1300 0 0 0 0 0
1300-1400 0 0 0 0 0
1400-1500 0 0 0 0 0
1500-1600 0 0 0 0 0
1600-1700 0 0 0 0 0
1700-1800 0 0 0 0 0
1800-1900 0 0 0 0 0
1900-2000 0 0 0 0 0
2000-2100 0 0 0 0 0
2100-2200 0 0 0 0 0
2200-2300 0 0 0 0 0
2300-2400 0 0 0 0 0
Host/Domain Summary: Message Delivery
--------------------------------------
sent cnt bytes defers avg dly max dly host/domain
-------- ------- ------- ------- ------- -----------
Host/Domain Summary: Messages Received
---------------------------------------
msg cnt bytes host/domain
-------- ------- -----------
4 3548 mail.akat.info
Senders by message count
------------------------
4 root@mail.akat.info
Recipients by message count: none
Senders by message size
-----------------------
3548 root@mail.akat.info
Recipients by message size: none
message deferral detail: none
message bounce detail (by relay)
--------------------------------
none (total: 8)
8 mail for mail.akat.info loops back to myself
message reject detail: none
message reject warning detail: none
message hold detail: none
message discard detail: none
smtp delivery failures: none
Warnings: none
Fatal Errors: none
Panics: none
Master daemon messages: none
### 昨日のログを分析する ###
root@hostname:/home/shimizu# pflogsumm -d yesterday /var/log/mail.log
### smtpd connectionの統計を表示する ###
root@hostname:/home/shimizu# pflogsumm --smtpd-stats /var/log/mail.log
### rejectしたIPやホスト情報をリストする ###
root@hostname:/home/shimizu# pflogsumm --rej-add-from /var/log/mail.log
### bounceメールの上位10件を表示する ###
root@hostname:/home/shimizu# pflogsumm --bounce-detail 10 /var/log/mail.log | lv
### 複数のファイルを取り込み可能 ###
root@hostname:/home/shimizu# pflogsumm /var/log/mail.log /var/log/mail.log.1