Print Page | Close Window

Stats

Printed From: LogSat Software
Category: Spam Filter ISP
Forum Name: Spam Filter ISP Support
Forum Description: General support for Spam Filter ISP
URL: https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5294
Printed Date: 21 January 2025 at 2:46am


Topic: Stats
Posted By: kspare
Subject: Stats
Date Posted: 05 August 2005 at 2:54pm
What are people doing to provide stats to their customers? In the way of showing how many emails were recieved etc amoutn of spam etc etc



Replies:
Posted By: Alan
Date Posted: 05 August 2005 at 5:14pm
Sawmill


Posted By: Derk
Date Posted: 05 August 2005 at 6:38pm

I wrote a Cold Fusion user interface and I have a scheduled task that runs every 15 minutes.  It searches through the spamfilter.ini for "EmailsBlocked", extracts the value, and updates a table in the database.  I then display the variable on the login page.  Here is my code:


<cfset thepath="C:\Program Files\SpamFilter\">
<cfset thefile="SpamFilter.ini">

<cffile action = "read" file = "#thepath##thefile#" variable="spamstats">

<cfset blockedstart=findnocase("EmailsBlocked=",spamstats)+14>


<cfset blockedend=(findnocase("EMailsForwarded", spamstats, blockedstart)-blockedstart)-2>

<cfquery name="setblocked" datasource = "#application.dsource#">
UPDATE statistics
SET blocked = #mid(spamstats, blockedstart, blockedend)#,
lastupdated = #now()#
where ID=1
</cfquery>



Posted By: pcmatt
Date Posted: 01 September 2005 at 11:09pm

I have a program that I wrote (SF2DB.exe SpamFilter Logs 2 Database) that runs on Windows servers and parses the SpamFilter log files combining all of the log entries for each email message into your favorite database.  Once in the database you may perform queries, write reports and analyse both rejected and approved email transactions.  Currently I parse all log files after midnight each night for the previous day and therefore am able to maintain an detailed database reporting system on all SpamFilter emails processed that is always current as of midnight the night before.  I use asp html reports and crystal reports to report on the data.

Info and download link:

http://www.ServerBoss.com/SF2DB - http://www.ServerBoss.com/SF2DB

 



-------------
-Matt R



Print Page | Close Window