Skip to content

Instantly share code, notes, and snippets.

@tyzbit
Last active June 17, 2016 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyzbit/ab9642ebbae7517221d929c4a01a47c6 to your computer and use it in GitHub Desktop.
Save tyzbit/ab9642ebbae7517221d929c4a01a47c6 to your computer and use it in GitHub Desktop.
^(?:(?P<timestamp>\d+\/\d+\/\d+\s+\d+:\d+:\d+) (?:(?P<failed_file>[^:]+): (?P<failure_status>[^:]+): HTTP code (?P<http_code>\d+): \"(?P<http_status>[^"]+)\", (?:.+: (?P<failure_json>{.*})|.+)|(Amazon cloud drive root '(?P<acd_root>.*)': )?(?<acd_status>[\w\s]+)|(?P<file_path>(?:.*\/)?(?<filename>[^\/]+\.[a-z0-9]{3,5}))?[a-zA-Z\/\s\.0-9]*: (?<acd_action>[^\n]+)))?(\n?Transferred:\s+(?<transferred_bytes>\d+)\s+Bytes\s*\(\s*(?<transfer_speed>[\d\.]+) kByte\/s\)\nErrors:\s+(?<errors>\d+)\nChecks:\s+(?<checks>\d+)\nTransferred:\s+(?<files_transferred>\d+)\nElapsed time:\s+((?P<hour>[0-9\.]+)h)?((?P<min>[0-9\.]+)m)?(?P<sec>[0-9\.]*)s)?$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment