Add: WTF is happening? Let's tail all logs.
This commit is contained in:
parent
143ef4a26f
commit
5e406b2345
1 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
WTF is happening? Let's tail all logs.
|
||||||
|
|
||||||
|
```
|
||||||
|
# tail -f $(lsof | grep -F .log | tr -s '\t' ' ' | cut -d' ' -f10 | sort | uniq | tr -s '\n' ' ')
|
||||||
|
```
|
||||||
|
|
||||||
Search for suspects POST in apache.log (often attacks).
|
Search for suspects POST in apache.log (often attacks).
|
||||||
```{.bash}
|
```{.bash}
|
||||||
grep -Eo '"POST .*.php' access.log | grep -ve cron -e login -e admin -e xmlrpc -e trackback -e comment -e 404 | sort -u
|
grep -Eo '"POST .*.php' access.log | grep -ve cron -e login -e admin -e xmlrpc -e trackback -e comment -e 404 | sort -u
|
||||||
|
|
Loading…
Reference in a new issue