The default SiLK path-format value in the silk.conf file is "%T/%Y/%m/%d/%x". My installation uses "%N/%Y/%m/%d/%x". CleanSiLK properly traverses the directory structure for each sensor and calculates when one has exceeded the allotted storage space, but the removal of the files fails. I believe that is because the removal routine assumes the default path-format.
Here is a small patch for FlowViewer_CleanSiLK, that seems to work in my case, and what I believe will work on the default and other path-formats.
Hi Joe,
The default SiLK path-format value in the silk.conf file is "%T/%Y/%m/%d/%x". My installation uses "%N/%Y/%m/%d/%x". CleanSiLK properly traverses the directory structure for each sensor and calculates when one has exceeded the allotted storage space, but the removal of the files fails. I believe that is because the removal routine assumes the default path-format.
Here is a small patch for FlowViewer_CleanSiLK, that seems to work in my case, and what I believe will work on the default and other path-formats.
Thanks,
Eric
Last edit: Eric van Wiltenburg 2017-03-15
Many thanks, Eric.