Quote:
Originally Posted by porn-update
I was thinking of installing Fail2ban, but I saw that it reads Apache errors.
But I think I didn't understand something because:
Code:
root@ubuntu-2gb-blr1-14-04-3:~# tail -f error_log|fgrep '[rewrite:'
tail: cannot open ‘error_log’ for reading: No such file or directory
root@ubuntu-2gb-blr1-14-04-3:~# LogLevel alert rewrite:trace3
LogLevel: command not found
What am I missing? How should I use this?
|
Sorry, long day -- that log's location /path/to/THAT/error_log
full path to THAT log not the domain config log.
Also pipe into the grep
$ tac <path/to/file/error.log>
| egrep -i 'this|or|that' |less