Say for example you have split your web server access logs per domain or account e.g.
/var/log/apache/www.example.com_access.log
/var/log/apache/www.toggen.com.au_access.log
/var/log/apache/www.exampe.com.au_access.log
...
If you want to view each request in the terminal as requests come in firstly make sure that your webserver log filenames conform to a simple pattern e.g. ([domain]_access.log) and then do the following
In $HOME/.bash_aliases
or wherever you define aliases add an alias:
alias logs='tail -f /var/log/apache/*access.log'
Run logs
alias to see your logs in the terminal window
$ logs
0 Comments