Log-dissector by PaulReiber
Log Dissector creates a bunch of new files with the information it gleans from a logfile. Those new files... speak for themselves.
Give it a go. Let me know if you have questions, comments, ideas for improvements.
Log Dissector evolved from these:
tail -10000000 messages |awk 'BEGIN{FS="[| \t]"} {line=""; for(n=4;n<=NF;n=n+1){ if($(n)~/^[0-9.,]+$/){ line=line "
counts of how many times various errors occur, sorted by count:
awk -F\] '{print $4}' error_log|sed 's/referer:.*//'|sort|uniq -c|sort -n
Ip addresses and counts of errors for all IPs which have caused over 1000 errors:
awk '{print $8}' error_log|sed 's/]//'|sort|uniq -c|sort -n|egrep [0-9]{4}
No comments:
Post a Comment