I find myself fairly frequently searching for a sepcific string
knowing that it happened 2 or 3 days ago. ASSP allows this by letting
me say search the last 3 log files (i rotate logs daily). BUT, if I'm
looking for something from 2 weeks ago, I'd need to search through 14
logs.
Would it be possible to add the functionality to search X logs ago,
essentially ignoring all but the log that you want to search? This
would certainly improve search speeds and processor demand when
there's a need to search for an event from several days back.
Basic code concept:
1) Edit the form to include a 4th option with value "singlefileid"
labeled "file ago (only)" or something else to make it clear that
we're only searching 1 file
2) Before the initial file is read:
my ($singlefileid) = $qs{size} =~ /(\d+)/;
$singlefileid = 1 unless $singlefileid;
$singlefileid = 0 if lc $qs{files} ne 'singlefileid';
This would set singlefileid as the number entered if singlefileid is
selected in the drop down. Then and strip off the files that we want
to ignore from the array
my $i;
if ($singlefileid) {
for ($i = $singlefileid; $i > 0; $i--) {
shift(@logfiles)
}
}
I think that should be enough for it to work, but I haven't had the
time to put it on a test machine.
Also, is it possible to have some functinality added to block
reporting. Some users only want to know about bayesian spam that's
been blocked. URIBL and DNSBL don't matter to them since they're
hardly ever wrong. It would also be nice to have the option to see
senders that have been delayed (even if it doesn't indicate if it
later went through or not). And, last (and of the least value to
users) the ability to send a request to show all messages blocked from
a specific sender to the requestor.
Thanks
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test