vCenter

 View Only
  • 1.  Safe to delete imfile-state: files from /rsyslogd directory?

    Posted Jun 29, 2022 04:17 PM

    Addressing space issues on my VCSA 7.0 (build 18356314) and I see over 800,000 imfile-state* files in the /storage/log/vmware/rsyslogd directory, I followed kb 81327 to apply the workaround so hopefully these files stop generating but I'd also like to purge all of these older files and reclaim some space.

    Does anyone know if I can safely purge these files?



  • 2.  RE: Safe to delete imfile-state: files from /rsyslogd directory?
    Best Answer

    Posted Jul 06, 2022 05:43 PM

    I ended up taking a snapshot and purging the files and everything appears stable.  Because there were over 975,000 files, I used the following command to purge them;

    for f in imfile-state*; do rm "$f"; done

    In total it took around 30 minutes or so to complete - I would periodically check progress from another ssh session and run;

    find . -iname "imfile-state*" | xargs ls -lrt | wc -l

    -and also 

    df -h