Skip to content

Instantly share code, notes, and snippets.

@glidenote
Created July 15, 2012 08:19
Show Gist options
  • Save glidenote/3115861 to your computer and use it in GitHub Desktop.
Save glidenote/3115861 to your computer and use it in GitHub Desktop.
format_debug.rb
log = '1342297357.149'
format = /^(?<date>[^ ]+)$/
time_format = ''
log = '1342297357.149 440'
format = /^(?<date>[^ ]+)\s+(?<duration>.*)$/
time_format = ''
log = '1342297357.149 440 192.168.11.3 TCP_MISS/302 627 GET http://glidenote.disqus.com/count.js - HIER_DIRECT/75.126.109.204 text/javascript'
format = /^(?<date>[^ ]+)\s+(?<duration>.*) (?<client address>.*) (?<result code>.*) (?<bytes>.*) (?<request method>.*) (?<url>.*) (?<rfc931>.*) (?<hierarchy code>.*) (?<type>.*)$/
time_format = ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment