target / strelka

Real-time, container-based file scanning at enterprise scale
Other
878 stars 113 forks source link

Optional Redundancy logging to remote S3 location #426

Closed skalupa closed 10 months ago

skalupa commented 10 months ago

Describe the change In the case of an interruption to the Kafka Producer connection to the corresponding broker topic, this PR adds in the option to toggle on a redundancy system such that logs for the past three hours are sent to a remote S3 location so that no data is lost during the Kafka interruption. Once connection to the Kafka broker resumes, either by self-healing or by restarting the frontend, the redundancy logs will be pulled from the remote S3 location and sent in parallel with incoming processed logs.

This feature is dependent on the Kafka Producer option being set to true in the Dockerfile, and, due to this fact, defaults to false in normal running of the application.

Describe testing procedures Code has been tested with a local instance of the Strelka containers.

Sample output N/A

Checklist

phutelmyer commented 10 months ago

Thank you @skalupa! Great work and well documented. 👍