Graylog2 / graylog-s3-lambda

An AWS Lambda function that reads logs from S3 and sends them to Graylog
GNU General Public License v3.0
12 stars 6 forks source link

Update CloudFlare codec, resolves #9 #10

Closed waab76 closed 4 years ago

waab76 commented 4 years ago

Users reported that the Lamba was failing with uncaught exceptions. These exceptions turned out to be ClassCastExceptions related to the handling of OriginResponseTimeMillis. The exceptions were not manifesting in JUnit tests, but did appear when the code was executed as an AWS Lambda. The change also enables stack trace logging for uncaught exceptions.

Change also includes an update to README.md to reflect the fact that AWS no longer wants region in S3 bucket ARN and a spelling correction in a failing JUnit test.

Verified that JUnits work. Verified that Lambda runs successfully and Graylog server receives events.

Related Issue: https://github.com/Graylog2/graylog-s3-lambda/issues/9

CLAassistant commented 4 years ago

CLA assistant check
All committers have signed the CLA.

waab76 commented 4 years ago

Updated the JUnit test case and verified it fails on master but works on the bug fix branch.