Ahsan Imam wrote:

>>> gawk '{print $8}' access_log* | sort | uniq -c
>>> 1
>>> 2   "-"
>>> 1   '.gif
>>> 1   /issues/2001-05-03/feature.html/page1.html
>>> 95563       200
>>> 673         206
>>> 21  301
>>> 182         302
>>> 1875        304
>>> 10  400
>>> 2447        403
>>> 1065        404
>>> 167         500
>>> 14  502
>>> 52  503
>>> 64  504
>>> 5   FALSE
>>> 4   TRUE
>>> 
>>> Am I doing the right comparison?

I think your comparison must be wrong. The above report shows that your 
shell approach collects such items as ".gif", "FALSE" and other things 
that are definitely NOT status codes. So either some of your log files 
are corrupt, they are not all in the same format, or your 8th field is 
not exact. Since you are getting some invalid numbers it is equally 
likely that this same method is collecting extraneous '200' numbers that 
aren't status codes either (they could be byte counts).



-- 

Jeremy Wadsack
Wadsack-Allen Digital Group

+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/[email protected]/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to