0x0049

Monitor Vagrant apache error log with multitail

Feb 14th, 2017
183
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.49 KB | None | 0 0
  1. #!/bin/sh
  2. # See https://pastebin.com/QP8dmAEC for a matching colorscheme.
  3.  
  4. multitail -Z red,black,inverse \
  5.     -T -x "%m %u@%h %f (%t) [%l]" \
  6.     -b 8 -m 0 -n 100 -f \
  7.     -cS apache_error \
  8.     -ev "Stack trace" \
  9.     -ev "PHP\s*[0-9]" \
  10.     -ev "\[ssl:warn\]" \
  11.     -ev "\[mpm_prefork:notice\]" \
  12.     -ev "\[core:notice\]" \
  13.     -eB "." \
  14.     -ke "\[:error\] " \
  15.     -ke "\[pid [^]]*\] " \
  16.     -ke "\[client: [^]]*\] " \
  17.     -ke "[\n]*Backtrace.*" \
  18.     -l "vagrant ssh -c 'sudo tail -n 100 -f /var/log/apache2/error.log'"
Comments
  • User was banned
Add Comment
Please, Sign In to add comment