Menu

#30 some problems

v0.4
open
Feed_db (13)
5
2003-01-19
2003-01-19
Giovanni
No

I use iptables log analyzer and i find it very interesting
project. I find some problem and i try to correct it.

1- My log have the month in this format "Dec" and
feed_db don't match with the first letter in uppercase!

2- I have my linux "Red Hat 8.0" with the italian
language but the "iptables" write log in english "Dec"
and the system call in feed_db for maching the month
return "dic".

3- I duplicate the feed_db and modify it for read all log
file. This is for load the fisrt time all record in db.

4- If i use Internet Explorer 6.0 SP1 all the date and
function is not working well. The first "date" i see is not
the first but i don't know wich is?? If i try to browse one
link in the right page (es: port, or domain ecc) the i can't
see any date!!

Here is my code:

1- i put "lc" function
$entry{'date'}="$year-".$m{lc(shift(@entry_split))}."-".shift
(@entry_split)." ".shift(@entry_split);

2 - this is only work arround (sorry but i'm not perl
programmer!!)

$m{jan}=1;
$m{feb}=2;
$m{mar}=3;
$m{apr}=4;
$m{may}=5;
$m{jun}=6;
$m{jul}=7;
$m{aug}=8;
$m{sep}=9;
$m{oct}=10;
$m{nov}=11;
$m{dec}=12;

Thanks for this project.
Bye

Discussion


Log in to post a comment.