Guest User

Untitled

a guest
Sep 26th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #! /usr/bin/python
  2.  
  3. import re
  4.  
  5. regex = re.compile(r'(?P<owner>\S+) (?P<bucket>\S+) (?P<time>\[[^]]*\]) (?P<ip>\S+) ' +
  6. r'(?P<requester>\S+) (?P<reqid>\S+) (?P<operation>\S+) (?P<key>\S+) ' +
  7. r'(?P<request>"[^"]*") (?P<status>\S+) (?P<error>\S+) (?P<bytes>\S+) ' +
  8. r'(?P<size>\S+) (?P<totaltime>\S+) (?P<turnaround>\S+) (?P<referrer>"[^"]*") ' +
  9. r'(?P<useragent>"[^"]*") (?P<version>\S)')
Add Comment
Please, Sign In to add comment