View Single Post
Old 09-20-2017, 06:35 PM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
Quote:
Originally Posted by porn-update View Post
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
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote