From cc46f416191749673a46bcf8b2ed6c7f4c7c9a10 Mon Sep 17 00:00:00 2001 From: Benjamin Doherty Date: Wed, 1 May 2013 11:37:06 -0500 Subject: [PATCH] HTTP status codes should be a page scope custom variable. --- misc/log-analytics/import_logs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py index 68ae819e5da..a1bea946c23 100755 --- a/misc/log-analytics/import_logs.py +++ b/misc/log-analytics/import_logs.py @@ -1156,7 +1156,7 @@ def _get_hit_args(self, hit): args['_cvar'] = '{"1":["Not-Bot","%s"]}' % hit.user_agent args['bots'] = '1' if hit.is_error or hit.is_redirect: - args['_cvar'] = '{"2":["HTTP-code","%s"]}' % hit.status + args['cvar'] = '{"1":["HTTP-code","%s"]}' % hit.status args['action_name'] = '%s/URL = %s%s' % ( hit.status, urllib.quote(args['url'], ''),