Skip to content

Instantly share code, notes, and snippets.

@suzuki
Last active August 29, 2015 14:08
Show Gist options
  • Save suzuki/fc929ea94d7e20d846da to your computer and use it in GitHub Desktop.
Save suzuki/fc929ea94d7e20d846da to your computer and use it in GitHub Desktop.
<source>
type tail
format /^(?<ip>[0-9\\.]+) \\S+ \\S+ \\[(?<time>[^\\]]+)\\] (?<server>\\S+) "(?<method>\\S+) (?<request_uri>\\S+) (?<http>\\S+)" (?<status>\\d+) (?<bytes>\\S+) \\S+ "(?<user_agent>[^\\"]+)"/
time_format %d/%b/%Y:%T %z
path /var/log/tdiary_access.log
pos_file /var/log/td-agent/tdiary_access.log.pos
tag tdiary.access
</source>
<match tdiary.**>
type stdout
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment