diff options
author | Donald Stufft <donald@stufft.io> | 2013-07-26 01:31:03 -0400 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2013-07-26 01:31:03 -0400 |
commit | 568b60b2d979314c92f3b31609d08acb149c9b10 (patch) | |
tree | 68b71187fc426b4a27a84d5a904ce1ca9ae4e72e /tools | |
parent | f178bf35a7a0e55b4e7720ccff41e2fb5e5b7d30 (diff) | |
download | decorator-568b60b2d979314c92f3b31609d08acb149c9b10.tar.gz |
Fix for new Fastly log lines
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/rsyslog-cdn.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/rsyslog-cdn.py b/tools/rsyslog-cdn.py index f5ca1ce..e764924 100755 --- a/tools/rsyslog-cdn.py +++ b/tools/rsyslog-cdn.py @@ -48,8 +48,9 @@ def process(line): try: row = list(csv.reader([line], delimiter=" "))[0] - path = row[7].split(" ", 1)[1] + path = row[6].split(" ", 1)[1] except Exception: + logger.error("Invalid Fastly Log Line: '%s'" % line) return # We only care about /packages/ urls |