Skip to content

Instantly share code, notes, and snippets.

@oranie
Created March 12, 2012 08:19
Show Gist options
  • Save oranie/2020687 to your computer and use it in GitHub Desktop.
Save oranie/2020687 to your computer and use it in GitHub Desktop.
result
# curl http://127.0.0.1:5000/
<source>
type tail
format /^(?<XFF-host>[^ ]*) (?<host>[^ ]*) [^ ]* (?<user>[^ ]*) [(?<time>[^]]*)] "(?<method>S+)(?: +(?<path>[^ ]*) +S*)?" (?<status>[^ ]*) (?<size>[^ ]*)(?: "(?<referer>[^"]*)" "(?<agent>[^"]*)" (?<response_time>[^ ]*))?/
time_format %d/%b/%Y:%H:%M:%S %z
path /var/log/httpd/access_log_sym
tag apache.access.127.0.0.1
pos_file /var/tmp/access.log.pos
</source>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment