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

Support for importing AWS CloudFront log files #6554

Closed

Conversation

biroca
Copy link

@biroca biroca commented Oct 29, 2014

I have added support to allow import of Amazon CloudFront log files. It has been tested and it is working fine.

@mnapoli mnapoli changed the title Feature/aws cloudfront support Support for importing AWS CloudFront log files Nov 4, 2014
@mnapoli mnapoli added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Nov 4, 2014
@mattab
Copy link
Member

mattab commented Nov 17, 2014

Thanks for the PR! This is nice new feature. Would you mind adding test log file in the logs/ directory in https://github.com/piwik/piwik/tree/master/misc/log-analytics/tests ? and maybe run the test scripts to check it works. This will help maintain the logic in the future 👍

@mattab mattab added the Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review. label Nov 17, 2014
@mattab mattab added this to the Short term milestone Nov 17, 2014
… with success. Test reported:

14:46:51 $ ./run_tests.sh
......................................
----------------------------------------------------------------------
Ran 38 tests in 0.024s

OK
@biroca
Copy link
Author

biroca commented Dec 1, 2014

Hi Mattab,

I have added the cloudfront log file and modified tests.py to support test for cloudfront logs. The test reported OK.

Thank you,
Bira.

Ubirata Chaves Coelho added 2 commits December 1, 2014 14:51
@mattab mattab modified the milestones: Short term, Piwik 2.10.0 Dec 2, 2014
@@ -254,6 +259,7 @@ def check_format(self, file):
'common_complete': RegexFormat('common_complete', _HOST_PREFIX + _NCSA_EXTENDED_LOG_FORMAT),
'iis': IisFormat(),
's3': RegexFormat('s3', _S3_LOG_FORMAT),
'cdn': RegexFormat('cdn', _CDN_LOG_FORMAT, '%Y-%m-%d %H:%M:%S'),
Copy link
Member

Choose a reason for hiding this comment

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

could you rename cdn to amazon_cloudfront ?

@diosmosis diosmosis self-assigned this Dec 9, 2014
@diosmosis
Copy link
Member

Fixed in #6851.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants