Title
#general
a

AP

12/27/2021, 6:25 PM
Hi, 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?
7:09 PM
These json files are created out of outputs of the osquery queries that the container is running. Logger is not writing any of these.
s

seph

12/27/2021, 9:40 PM
What's writing the files?
a

AP

12/28/2021, 6:48 AM
encoding/json pckg
s

seph

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
a

AP

12/28/2021, 1:40 PM
I too realised that. Thanks for your response @seph Will post it in right channel.
s

seph

12/28/2021, 1:41 PM
Autocorrect managed that. Meant to say "I don't think I understand" Glad you got somewhere.