serilog-contrib / Serilog.Sinks.AmazonS3

Serilog.Sinks.AmazonS3 is a library to save logging information from Serilog to Amazon S3. The idea there was to upload log files to Amazon S3 to later evaluate them with Amazon EMR services.
MIT License
21 stars 21 forks source link

No files logged in S3 for lambda, but no errors thrown #57

Closed alexgurman closed 1 year ago

alexgurman commented 1 year ago

In our lambdas we can't get S3 logging to work, tried all possible options. The code works when run locally with dotnet-lambda-test-tool-6.0, as well as from ECS service, but not from lambda.

Deploying directly from Visual Studio 2022 using AWS Toolkit,, Publish to AWS Lambda option

Attaching dummy lambda with sample code (.NET 6). DummyLambdaUncommon.zip

alexgurman commented 1 year ago

specifying Time Zone on the lambda did it:

"TZ": { "Type": "String", "Default": "America/Chicago" }

SeppPenner commented 1 year ago

specifying Time Zone on the lambda did it:

"TZ": { "Type": "String", "Default": "America/Chicago" }

Sorry for the late reply. Great that you found it.