Created
April 12, 2017 10:30
-
-
Save broxio/4048d72519deed1902070ca36a3bf5a2 to your computer and use it in GitHub Desktop.
This file contains 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 | |
path /var/log/foo/bar.log | |
pos_file /var/log/td-agent/foo-bar.log.pos | |
tag foo.bar | |
format /^(?<host>[^ ]*) (?<remote>[^ ]*) - (?<user>[^ ]*) \[(?<time>[^\]]*)\] "(?<method>\S+)(?: +(?<path>[^ ]*) +\S*)?" (?<code>[^ ]*) (?<body_bytes_sent>[^ ]*) "(?<referer>[^\"]*)" "(?<agent>[^\"]*)" "(?<http_x_forwarded_for>[^\"]*)" (?<request_time>[^ ]*) (?<request_length>[^ ]*):(?<bytes_sent>[^ ]*)/ | |
time_format %d/%b/%Y:%H:%M:%S %z | |
</source> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment