nginx logs
This commit is contained in:
parent
da6419167a
commit
eed6cc73a6
@ -1,5 +1,6 @@
|
|||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<a href="basic.sh">wget -q -O - otp-bash.tw1.ru/basic.sh | bash</a>
|
<a href="basic.sh">wget -q -O - otp-bash.tw1.ru/basic.sh | bash</a>
|
||||||
|
<a href="nginx.sh">wget -q -O - otp-bash.tw1.ru/nginx.sh | bash</a>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
3
src/nginx.sh
Normal file
3
src/nginx.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo "- Sort by IP"
|
||||||
|
cat /var/log/nginx/access.log | awk '{print $1}' | sort | uniq -c | sort -hr | head -n 30
|
Loading…
Reference in New Issue
Block a user