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

Multiple files written per day even though Rolling Interval is set for Day #43

Closed treysuiter closed 2 years ago

treysuiter commented 2 years ago

Hello there. I have the S3 sink left at its default RollingInterval by Day but I am still getting multiple files written to the bucket per day with _00X appended to the name. I was under the assumption this would work like the File sink (which I have configured to roll per day and is working fine). Code to configure logger is below. Thanks for any help!

.WriteTo.AmazonS3(
                    path:"logs.txt",
                    bucketName: "bucket-name",
                    endpoint: Amazon.RegionEndpoint.USEast2,
                    formatter: new JsonFormatter()
                    )
treysuiter commented 2 years ago

Looks like this is working as intended as S3 does not handle appending objects. Closing.

SeppPenner commented 2 years ago

Looks like this is working as intended as S3 does not handle appending objects. Closing.

That is the indeed the reason. Sorry for my late reply.