Thanks for posting the script. Had a look at it :) My steps are:
- copy the current log file state to a temp file with bash script (cause the file changes in real time) - parse each spamdyke log line to a mysql database, the whole line is splitted into fields - write the linenumber into a file - on next php parse: parse from the last used line to the current state - on logfile change (log rotate) parse the last log file state and start with the new log file On the plesk backend file i read the mysql entrys and filter those by sql statements. By now i only have a more visual log file output with a few filter possibilities (domains, email search input field). --Stefan > -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] [mailto:spamdyke-users- > [EMAIL PROTECTED] Im Auftrag von David Stiller > Gesendet: Mittwoch, 30. April 2008 12:18 > An: spamdyke users > Betreff: Re: [spamdyke-users] feature request spamdyke user interface > > So here you can see my first steps: > http://www.php-schnippsel.de/archives/8 > > David Stiller schrieb: > > That's close to what i've made. ;) > > > > Stefan Pausch schrieb: > > > >> I would love to get my hands on that package as well. I am working > on > >> a log analyzing script, too and would love to see how the scripts > were > >> built. > >> > >> My script uses bash+php for dumping to a database and a plesk > frontend > >> for filtering / analyzing. > >> > >> A editor for configuration files is planned but i am busy with > >> projects right now and wont be able to work on those scripts for a > >> few days. > >> > >> --Stefan > >> > >> *Von:* [EMAIL PROTECTED] > >> [mailto:[EMAIL PROTECTED] *Im Auftrag von > *nightduke > >> *Gesendet:* Dienstag, 29. April 2008 17:35 > >> *An:* spamdyke users > >> *Betreff:* Re: [spamdyke-users] feature request spamdyke user > interface > >> > >> Well i prefer analyzing logs... > >> > >> Plesk is plesk, i mean some people use it and some don't use that. > >> > >> Thanks a lot. > >> > >> Nightduke > >> > >> > >> > >> 2008/4/29, David Stiller <[EMAIL PROTECTED] > >> <mailto:[EMAIL PROTECTED]>>: > >> > >> Hi Nightduke, > >> > >> sure, just give me an hour (or two) to make a package from that, as > it's > >> not very general atm. > >> I'll publish that on my private site later on and give you a link to > >> check it out. Do you also > >> want the stuff for plesk, or just analyzing the logs? > >> > >> David > >> > >> > >> nightduke schrieb: > >> > >>> David i think it will be a great idea to have a php client and also > >>> cron analyzing logs. > >>> > >>> Thanks a lot for your sugguestion, can you do that? > >>> > >>> Nightduke > >>> > >>> > >>> > >>> 2008/4/28, David Stiller <[EMAIL PROTECTED] > >>> > >> <mailto:[EMAIL PROTECTED]> > >> > >>> <mailto:[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>>>: > >>> > >>> > >>> Hi, > >>> > >>> i made a full Programm for that incl. an overview for Plesk. If > you're > >>> interested i would like > >>> to give it to you. I'm using PHP-CLI and a cron analyzing the logs. > >>> > >>> Regards, > >>> David > >>> > >>> Marcin Orlowski schrieb: > >>> > >>>> Jake Briggs wrote: > >>>> > >>>> > >>>> > >>>>> But seriously, getting simple rough stats from the logs really is > a > >>>>> simple grep and a quick calculation in the head. > >>>>> > >>>>> > >>>> or use of 'wc' > >>>> > >>>> > >>>> > >>>>> It would be good to know how much spam got through, but that > would > >>>>> require some sort of crystal ball.... Or a spam reporting > >>>>> > >>> mechanism and > >>> > >>>>> total user compliance in reporting all spam, all which is far far > >>>>> outside of the scope of spamdyke.... > >>>>> > >>>>> > >>>> just grep your logs for spam filter entires. If it's > >>>> > >>> SpamAssasin, just > >>> > >>>> look for "spamd: result: Y" and you get some figures how many > >>>> of ALLOWED was *probably* a spam. > >>>> > >>>> Marcin > >>>> _______________________________________________ > >>>> spamdyke-users mailing list > >>>> [email protected] <mailto:[email protected]> > >>>> > >> <mailto:[email protected] <mailto:spamdyke- > [EMAIL PROTECTED]>> > >> > >>>> http://www.spamdyke.org/mailman/listinfo/spamdyke-users > >>>> > >>>> > >>> -- > >>> Technischer Support > >>> > >>> BLACKBIT Neue Medien GmbH | BLACKBIT Neue Werbung GmbH > >>> Ernst-Ruhstrat-Straße 6 - D-37079 Göttingen > >>> > >>> Tel +49 [551] 506 75-0 Fax +49 [551] 506 75-20 > >>> E-Mail: [EMAIL PROTECTED] > >>> > >> <mailto:[EMAIL PROTECTED]> > >> > >>> <mailto:[EMAIL PROTECTED] > >>> > >> <mailto:[EMAIL PROTECTED]>> > >> > >>> Klassische Werbung und Online-Marketing: http://www.blackbit.de > >>> Software für Online-Marketing: http://www.go-community.de > >>> > >>> _______________________________________________ > >>> spamdyke-users mailing list > >>> [email protected] <mailto:[email protected]> > >>> > >> <mailto:[email protected] <mailto:spamdyke- > [EMAIL PROTECTED]>> > >> > >>> http://www.spamdyke.org/mailman/listinfo/spamdyke-users > >>> > >>> > >>> ------------------------------------------------------------------- > ----- > >>> > >>> _______________________________________________ > >>> spamdyke-users mailing list > >>> [email protected] <mailto:[email protected]> > >>> http://www.spamdyke.org/mailman/listinfo/spamdyke-users > >>> > >>> > >> -- > >> Technischer Support > >> > >> BLACKBIT Neue Medien GmbH | BLACKBIT Neue Werbung GmbH > >> Ernst-Ruhstrat-Straße 6 - D-37079 Göttingen > >> > >> Tel +49 [551] 506 75-0 Fax +49 [551] 506 75-20 > >> E-Mail: [EMAIL PROTECTED] > >> <mailto:[EMAIL PROTECTED]> > >> > >> Klassische Werbung und Online-Marketing: http://www.blackbit.de > >> Software für Online-Marketing: http://www.go-community.de > >> > >> _______________________________________________ > >> spamdyke-users mailing list > >> [email protected] <mailto:[email protected]> > >> http://www.spamdyke.org/mailman/listinfo/spamdyke-users > >> > >> -------------------------------------------------------------------- > ---- > >> > >> _______________________________________________ > >> spamdyke-users mailing list > >> [email protected] > >> http://www.spamdyke.org/mailman/listinfo/spamdyke-users > >> > >> > > > > > > > > > -- > Technischer Support > > BLACKBIT Neue Medien GmbH | BLACKBIT Neue Werbung GmbH > Ernst-Ruhstrat-Straße 6 - D-37079 Göttingen > > Tel +49 [551] 506 75-0 Fax +49 [551] 506 75-20 > E-Mail: [EMAIL PROTECTED] > > Klassische Werbung und Online-Marketing: http://www.blackbit.de > Software für Online-Marketing: http://www.go-community.de > > _______________________________________________ > spamdyke-users mailing list > [email protected] > http://www.spamdyke.org/mailman/listinfo/spamdyke-users > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 3067 (20080430) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com _______________________________________________ spamdyke-users mailing list [email protected] http://www.spamdyke.org/mailman/listinfo/spamdyke-users
