Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Thread

streaming the stat feature output to another machine

streaming the stat feature output to another machine

2007-02-20 by Emmanuel Dreyfus

Hi

Some of you enjoy the new stat feature, which produces a custom log of
milter-greylist activity. I'd like to stream that data to another machine
in real-time. Anyone has ome idea of how to perform it?

A first option is to modify milter-greylist ot use curl and send the data
through HTTP POST. That's not very straightforward since the code must take
care of network failures. 

A second option is to use existing code and to pipe to an external tool, 
or to a file, and having an external tool doing the job. 

Anyone has an idea of what external tool could be used to stream the data
reliabily?

-- 
Emmanuel Dreyfus
manu@...

Re: [milter-greylist] streaming the stat feature output to another machine

2007-02-20 by Harish Pillay

> Some of you enjoy the new stat feature, which produces a custom log of
> milter-greylist activity. I'd like to stream that data to another machine
> in real-time. Anyone has ome idea of how to perform it?

I have not tried the stat feature (am running 3.1.6 and have to rtfm now),
but would it not be more useful for there to be a webmin module to read
the data instead of shuntting the data somewhere else?   I reckon from
a reliability point of view, getting it viewable in real time via webmin would
save a lot of headaches.  The last thing you want is the data to be lost or
delayed on transit because of network issues.  If webmin is suffering from
it, so be it, but atleast the data is still be captured and stored.

I am suggesting webmin only because I have been trying to work with
awstat module in webmin to read the sendmail logs and make sense
of the milter-greylist activity.  Not much has happened - just in the
exploratory phase.

BTW, Emmanuel, thanks for the great tool!  It has saved so much time
for my users (about 4000+) who have been suffering in silence for too
long.

Harish

Re:streaming the stat feature output to another machine

2007-02-23 by George Elgin

if you are running a webserver on the same machine why not just
create a soft link from somewhere httpd (or whatever) can serve up
the log file ?. then the client machine can just use wget.

the problem with this is the file gets big quick. i have had good
luck in perl using Date::Manip to parse timestamps for example
limiting to the last 24 hrs

ex)
my $d1 = DateCalc( "today", "- 24 hours");
my $begin =  &UnixDate( $d1, "%b %e %T");

.
.

        if ( $date gt $begin ) {

will start processing timestamps from 24 hrs ago...


-george


 
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

Re: [milter-greylist] Re:streaming the stat feature output to another machine

2007-02-23 by manu@netbsd.org

George Elgin <gelgin@...> wrote:

> if you are running a webserver on the same machine

Please read $SUBJECT :-)

It seems that pipeing the stat output to |logger -p local7.info gives a
good result. syslogd can stream the output to a remote machine, where I
just have to strip the line header inserted by syslog.

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.