panagiotis has asked for the wisdom of the Perl Monks concerning the following question:
Hello guys! I am new to perl scripting and I have to say amazed too! I need a little help for my perl script. I am trying to data mine a common log format and I preprocess it with a perl script. I use this code to ignore some urls
if ($values[6]!~m /(css|gif|png|jpg|swf|CSS|GIF|PNG|JPG|JS|js|ico|ICO|txt|TXT)$/ && ($values[6]!~m/(cmd.exe|root.exe|default.ida)/) && (($values[8]=~m/(200)/) || ($values[8]=~m/(304)/) || ($values[8]=~m/(302)/) || ($values[8]=~m/(301)/)))but i dont know how to ignore some urls like that
/index.php?option=com_content&task=category§ionid=4&id=14&Itemid=28or that one
/icte/viewtopic.php?f=7&t=19&start=0&st=0&sk=t&sd=a&sid=9d1ecb96bad6e27bae6468d3bf482686do you have any ideas??? Thank you in advance!! :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: webserver common log format file script
by chrestomanci (Priest) on Sep 06, 2011 at 13:16 UTC | |
|
Re: webserver common log format file script
by ww (Archbishop) on Sep 06, 2011 at 12:22 UTC | |
|
Re: webserver common log format file script
by moritz (Cardinal) on Sep 06, 2011 at 12:13 UTC | |
|
Re: webserver common log format file script
by Marshall (Canon) on Sep 06, 2011 at 14:57 UTC |