Last active
March 9, 2016 08:24
-
-
Save ianchadwick/455f27941ec0cb5a7cf2 to your computer and use it in GitHub Desktop.
fluentd / google compute logging for Lumen logs
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
<source> | |
type tail | |
format multiline | |
format_firstline /\[\d{4}-\d{1,2}-\d{1,2} \d{1,2}:\d{1,2}:\d{1,2}\]/ | |
format1 /^\[(?<time>\d{4}-\d{1,2}-\d{1,2} \d{1,2}:\d{1,2}:\d{1,2})\] lumen.(?<level>[^\s]+)(?<message>.*)/ | |
path /path/to/my-site/storage/logs/lumen.log | |
pos_file /var/lib/google-fluentd/pos/lumen.pos | |
read_from_head true | |
tag lumen | |
</source> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment