opensuse12.3 - simple postfix log-parser ??

opensuse12.3 postfix. format postfix-log-file was changed юю
I look for a postfix log-file parser for this new …

serg

On 2013-08-05 13:56, skoltogyan wrote:
>
> opensuse12.3 postfix. format postfix-log-file was changed юю
> I look for a postfix log-file parser for this new …

There is a specific subforum for “looking-for” questions. Please request
a moderator to move your post.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Depends on what you mean by “simple.”
If you mean a small app with some kind of default that hopefully displays what you want, the following isn’t for you, but…
If you don’t mind a big install that ultimately can support automatically parsing and recognizing the data from a variety of logfiles (including postfix), then displaying the data in a webpage where you can analyze the logfile(s) by clicking on links and live charts created automatically for you, then
https://en.opensuse.org/User:Tsu2/Install_and_Intro_Logstash-Elasticsearch-Kibana

TSU

“simple script” ( for me ) is:

  1. Parse /var/log/mail
  2. write in to the mysql DB info as (for example):
    2013-08-06 10:02:05 | user@firma.ua | user1@gmail.com | 45600 | 184.212.90.81

where:
2013-08-06 10:02:05 - Date and time when was delivered
user@firma.ua - sender email address
user1@gmail.com - recipient email address
45600 - mail size
184.212.90.81 - IP address remote server

Serg