kazak has asked for the wisdom of the Perl Monks concerning the following question:
So straight to the business.
133.133.133.133, 87.87.87.87 127.0.0.1 - - [21/Apr/2012:04:35:01 +0200 +] "GET /seo/vbseocp.php HTTP/1.0" 404 300 "-" "Internet Explorer 6.0" 95.95.95.95, 87.87.87.87 127.0.0.1 - - [22/Apr/2012:04:00:43 +0200] "G +ET / HTTP/1.0" 200 10211 "http://yandex.ru/yandsearch?text=example.co +m" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;)"
And this is regexp
m/^(\S+)\, (\S+) (\S+) \- \- \[(\d{2})\/(\w+)\/(\d{4})\:(\d{2})\:(\d{2})\:(\d{2})\+(\d{4})\] \"\S+\" (\d{3}) (\d+|-) \"(.*?)\" \"\.*?\"$/It would be great if someone showed me where I'm wrong and and how it should be done. Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Log regexp
by toolic (Bishop) on Aug 03, 2012 at 13:51 UTC | |
by kazak (Beadle) on Aug 06, 2012 at 09:16 UTC | |
|
Re: Log regexp
by Athanasius (Archbishop) on Aug 03, 2012 at 16:23 UTC | |
by kazak (Beadle) on Aug 06, 2012 at 09:17 UTC | |
|
Re: Log regexp
by hbm (Hermit) on Aug 03, 2012 at 17:00 UTC | |
by kazak (Beadle) on Aug 06, 2012 at 09:20 UTC | |
|
Re: Log regexp
by DamianConway (Beadle) on Aug 03, 2012 at 21:52 UTC | |
by kazak (Beadle) on Aug 06, 2012 at 09:21 UTC |