0x0049 icon

Monitor Vagrant apache error log with multitail

0x0049 | PRO | 02/14/17 07:04:46 PM UTC | 0 ⭐ | 176 👁️ | Never ⏰ | []
Bash |

490 B

|

None

|

0 👍

/

0 👎

#!/bin/sh
# See https://pastebin.com/QP8dmAEC for a matching colorscheme.
 
multitail -Z red,black,inverse \
    -T -x "%m %u@%h %f (%t) [%l]" \
    -b 8 -m 0 -n 100 -f \
    -cS apache_error \
    -ev "Stack trace" \
    -ev "PHP\s*[0-9]" \
    -ev "\[ssl:warn\]" \
    -ev "\[mpm_prefork:notice\]" \
    -ev "\[core:notice\]" \
    -eB "." \
    -ke "\[:error\] " \
    -ke "\[pid [^]]*\] " \
    -ke "\[client: [^]]*\] " \
    -ke "[\n]*Backtrace.*" \
    -l "vagrant ssh -c 'sudo tail -n 100 -f /var/log/apache2/error.log'"

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎