Friday, September 30, 2011
Howto parse webserver logfiles for 404 errors
today i have found a very nice command for parsing 404 errors.
here´s an example that works perfect with nginx:
cat access.log|cut -f 7,8,9 -d \ |grep "404"|sed 's/HTTP\/1\.[01]//'|sed 's/404//'|sed 's/ //'|sed 's/"//'| sort | uniq -c | sort -gr
0 Kommentare:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
0 Kommentare:
Post a Comment