Diff for scripts/perl/postfix/pf-savelog-mysql.pl between version 1.4 and 1.5
| version 1.4, 2004/10/31 11:50:28 |
version 1.5, 2005/09/16 21:29:28 |
|
|
| # pf-savelog-mysql.pl - parse Postfix log and store entries into database (e.g. MySQL) |
# pf-savelog-mysql.pl - parse Postfix log and store entries into database (e.g. MySQL) |
| # |
# |
| # Developed by Lubomir Host 'rajo' <rajo AT platon.sk> |
# Developed by Lubomir Host 'rajo' <rajo AT platon.sk> |
| # Copyright (c) 2004 Platon SDG, http://platon.sk/ |
# Copyright (c) 2004-2005 Platon SDG, http://platon.sk/ |
| # Licensed under terms of GNU General Public License. |
# Licensed under terms of GNU General Public License. |
| # All rights reserved. |
# All rights reserved. |
| # |
# |
| # Changelog: |
# Changelog: |
| # 2004-10-19 - created |
# 2004-10-19 - created |
| # |
# |
| # Usage: |
|
| # |
|
| # Download Platon's Perl modules from http://platon.sk/cvs/cvs.php/perl-modules/ |
|
| # |
|
| # Config file /etc/mysql/syslog-ng.conf for syslog-ng: |
|
| # |
|
| # destination df_mail { file("/var/log/mail/mail.log" template("$ISODATE $HOST [$LEVEL] $MSG\n")); }; |
|
| # filter f_mail { facility(mail); }; |
|
| # log { |
|
| # source(s_all); |
|
| # filter(f_mail); |
|
| # destination(df_mail); |
|
| # }; |
|
| # TODO: pipe error log into this script |
|
| # |
|
| # |
|
| |
|
| |
|
| # $Platon: scripts/perl/postfix/pf-savelog-mysql.pl,v 1.3 2004/10/30 23:04:25 rajo Exp $ |
# $Platon: scripts/perl/postfix/pf-savelog-mysql.pl,v 1.4 2004/10/31 11:50:28 rajo Exp $ |
| |
|
| use strict; |
use strict; |
| |
|
Platon Group <platon@platon.org> http://platon.org/
|
|