rundeck-plugins / rundeck-s3-log-plugin

Store execution logs in Amazon S3 buckets
Apache License 2.0
32 stars 26 forks source link

Rundeck Log still created in localhost altought migrate to S3 storage #24

Open Fahri28 opened 6 years ago

Fahri28 commented 6 years ago

Hi,

i have installed rundeck in ec2 instance and want to move every project-job log into S3 storage. i use Rundeck S3 Log plugin to implement this, but i just wonder why the job log still created twice both in localhost (var/lib/rundeck/logs) and in S3 storage, instead it should only be in S3 storage bucket

gschueler commented 6 years ago

the logs are first written to local storage, then uploaded to s3. after that they can be removed from local storage if you want, but rundeck does not automatically remove them (currently)

if that is desired can you file an issue on the rundeck project?

triwats commented 5 years ago

Going back to this it certainly seems advantageous to maintain the log on the local machine for debugging purposes.

doniz commented 1 month ago

Can we have an option to delete log files from the local storage? By default that option can be false to prevent deleting from the local storage, but users may use that option as they like.

I do see plugin anyway deletes the log files from the bucket: https://github.com/rundeck-plugins/rundeck-s3-log-plugin/blob/master/src/main/java/org/rundeck/plugins/S3LogFileStoragePlugin.java#L408, having an option to also delete from the local storage would help to have a proper retention that can be managed by Rundeck cleanup feature.