Brayyy/Lambda-CloudFront-Log-Restructure

Throwing error while dealing with standard log files

ravinderonly opened this issue · 0 comments

It seems, file naming convention you have considered has change. Can you please look at this?

File format - E1NG2EADLQDZ7C.2018-07-31-00.007eaf41.gz

Error
list index out of range: IndexError
Traceback (most recent call last):
File "/var/task/lambda_function.py", line 22, in lambda_handler
distro = key.split('/')[1]
IndexError: list index out of range