Last active
August 20, 2018 20:37
-
-
Save karolyi/3032020b4d62c6fd0b9148db1a242548 to your computer and use it in GitHub Desktop.
Uwsgi syntax for multitail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---- | |
# | |
# uwsgi log https://gist.github.com/karolyi/3032020b4d62c6fd0b9148db1a242548 | |
colorscheme:uwsgi:https://uwsgi-docs.readthedocs.io/en/latest/ | |
# HTTP method highlighting | |
cs_re_s:cyan:\{[0-9]+ vars in [0-9]+ bytes\} \[.*\] (GET) | |
cs_re_s:magenta:\{[0-9]+ vars in [0-9]+ bytes\} \[.*\] (POST|PUT|DELETE|OPTIONS) | |
# Response time highlighting: >500: yellow, >750ms: magenta-bold, >1000ms: red-bold | |
cs_re_val_bigger:red,,bold:1000:generated [0-9]+ bytes in ([0-9]+) msecs | |
cs_re_val_bigger:magenta,,bold:750:generated [0-9]+ bytes in ([0-9]+) msecs | |
cs_re_val_bigger:yellow:500:generated [0-9]+ bytes in ([0-9]+) msecs | |
cs_re_s:green:generated [0-9]+ bytes in ([0-9]+) msecs | |
# Request path highlighting with underline | |
cs_re_s:white,,underline:\[pid: [0-9]+\|app: [0-9]+\|req: [0-9]+\/[0-9]+\].*[A-Z]+ ([^ ]+) | |
# HTTP statuscode highlighting | |
cs_re_val_bigger:red,,bold:499:generated [0-9]+ bytes in [0-9]+ msecs \(HTTP\/[0-9]+\.[0-9]+ ([0-9]+)\) | |
cs_re_val_bigger:red:399:generated [0-9]+ bytes in [0-9]+ msecs \(HTTP\/[0-9]+\.[0-9]+ ([0-9]+)\) | |
cs_re_val_bigger:yellow:299:generated [0-9]+ bytes in [0-9]+ msecs \(HTTP\/[0-9]+\.[0-9]+ ([0-9]+)\) | |
cs_re_s:white,,bold:generated [0-9]+ bytes in [0-9]+ msecs \(HTTP\/[0-9]+\.[0-9]+ ([0-9]+)\) | |
# IP address highlighting | |
cs_re_s:blue,,bold:\[pid: [0-9]+\|app: [0-9]+\|req: [0-9]+\/[0-9]+\] ([0-9a-f:\.]+) | |
# Time highlighting | |
cs_re_s:white,,bold:\{[0-9]+ vars in [0-9]+ bytes\} (\[).* ([0-9]+:[0-9]+:[0-9]+) .*(\]) | |
scheme:uwsgi:/var/log/uwsgi/app/ | |
# ---- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment