DSS EventServer - How to clean old files generated by the EventServer ?

Solved!
rona
Level 3
DSS EventServer - How to clean old files generated by the EventServer ?

Hi,

We activated the DSS EventServer in order to get some KPI related to the DSS API Node endpoints execution.

We would like to implement a process to clean regularly all the files older than 30 days.

Please, do you know the best approach to setup this process ?

The log files are currently stored with a โ€œfilesystem-likeโ€ connection.

 

0 Kudos
1 Solution
AlexT
Dataiker

Hi,

While there are currently no built-in macros to manage this from DSS. 

If you are using S3 or similar you can use S3 lifecycle policies to remove data older than x days. 

Otherwise, a simple bash script and cron job to clean up the respective files regularly feel like the easiest approach. 

e.g find /path_to_/topic/routing-key/* -mtime +30 -exec rm {} \;

 

 

 

View solution in original post

0 Kudos
1 Reply
AlexT
Dataiker

Hi,

While there are currently no built-in macros to manage this from DSS. 

If you are using S3 or similar you can use S3 lifecycle policies to remove data older than x days. 

Otherwise, a simple bash script and cron job to clean up the respective files regularly feel like the easiest approach. 

e.g find /path_to_/topic/routing-key/* -mtime +30 -exec rm {} \;

 

 

 

0 Kudos