I have a few small json files (not log files) getting created by the container which, as of now, sits in the same folder as log file(which is log rotated).
The requirement is to not retain json files older than 2 days. Log rotation doesn't provide rotation base on time.
Is there any other way possible to fulfil this?
These json files are created out of outputs of the osquery queries that the container is running.
Logger is not writing any of these.
12/27/2021, 9:40 PM
What's writing the files?
12/28/2021, 6:48 AM
12/28/2021, 12:27 PM
I don't think I u sweat and -- what does this have to do with osquery?It sounds like you have something writing files, and you want to remove them from disk
12/28/2021, 1:40 PM
I too realised that. Thanks for your response @sephWill post it in right channel.
12/28/2021, 1:41 PM
Autocorrect managed that. Meant to say "I don't think I understand"Glad you got somewhere.