today i have found a very nice command for parsing 404 errors. In the Blog from Macropage.de
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
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
Thanks for Macropage: http://blog.macropage.de/2011/09/howto-parse-webserver-logfiles-for-404.html
eCom Software SolutionGreets Anatolij
0 Kommentare:
Kommentar veröffentlichen