Hallo Leute!
Ich habe unter http://www.linux-club.de/viewtopic.php?f=7&t=72953&start=0 das Script:
# cat /var/log/squid/access.log | awk '{print $8}' | awk '{ sub(/http\:\/\//, ""); sub(/\//, " " ); print $1 }' | sort -d | uniq -c | sort -r -n > /root/top100 && cat /root/top100 |head -n 100
ausprobiert - bekomme es aber nicht richtig zum Laufen.
Als Ausgabe bekomme ich lediglich 81434 HTTP - wobei sich die Zahl ändert (vermutlich in Abhängigkeit des Logeintrags)!? :???:
Hat jemand von euch eine Idee?
Ich habe unter http://www.linux-club.de/viewtopic.php?f=7&t=72953&start=0 das Script:
# cat /var/log/squid/access.log | awk '{print $8}' | awk '{ sub(/http\:\/\//, ""); sub(/\//, " " ); print $1 }' | sort -d | uniq -c | sort -r -n > /root/top100 && cat /root/top100 |head -n 100
ausprobiert - bekomme es aber nicht richtig zum Laufen.
Als Ausgabe bekomme ich lediglich 81434 HTTP - wobei sich die Zahl ändert (vermutlich in Abhängigkeit des Logeintrags)!? :???:
Hat jemand von euch eine Idee?