Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudfront log importing support and W3CExtendedFormat refactor #6851

Merged
merged 3 commits into from Dec 15, 2014

Conversation

diosmosis
Copy link
Member

A refactor to the W3cExtendedFormat log format that:

  1. allows derived classes to add/subtract recognized fields
  2. treats the time-taken field as a float field in seconds (as specified by W3C)
  3. still treats time-taken as seconds if IIS format is used

Includes support for both normal web Amazon Cloudfront logs and Amazon Cloudfront RTMP logs, also. Multiple spaces are now allowed between fields in the W3C extended log file format.

Note: RTMP logs are logs for Amazon Cloudfront's RTMP streaming service. Reference is here: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html#StreamingDistributionLogFileFormat

RTMP logs contains logs for video playback events. They define some extra fields that for event information. This pull request will recognize those fields and supply them as event tracking query parameters.

@mattab
Copy link
Member

mattab commented Dec 15, 2014

👍

# if the --w3c-time-taken-secs option is used, make sure the time-taken field is interpreted as seconds
if config.options.w3c_time_taken_in_secs:
expected_fields['time-taken'] = '(?P<generation_time_secs>\S+)'
# if the --w3c-time-taken-millisecs option is used, make sure the time-taken field is interpreted as seconds
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure the time-taken field is interpreted as seconds

, make sure the time-taken field is interpreted as milliseconds

diosmosis added 2 commits December 14, 2014 19:30
…r & making W3cExtendedFormat treat time-taken field as seconds by default (since that is what the W3C format specifies). Also add support for event tracking and cloudfront RTMP logs (which provide event logs). Also allow multiple spaces in between W3C extended log files. Allow derived classes of W3cExtendedFormat to define new custom field regexes.
…to Parser.check_format so only one warning outputted.
diosmosis added a commit that referenced this pull request Dec 15, 2014
Cloudfront log importing support (web + RTMP) and W3CExtendedFormat refactor (allow derived types to modify recognized fields and interpret time-taken as seconds by default).
@diosmosis diosmosis merged commit 2a1c4c7 into master Dec 15, 2014
@diosmosis diosmosis deleted the cloudfront_and_iis_bugfix branch December 15, 2014 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants