Skip to content

Instantly share code, notes, and snippets.

@ianchadwick
Last active March 9, 2016 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianchadwick/455f27941ec0cb5a7cf2 to your computer and use it in GitHub Desktop.
Save ianchadwick/455f27941ec0cb5a7cf2 to your computer and use it in GitHub Desktop.
fluentd / google compute logging for Lumen logs
<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