Recommended method to compress last rotate of file?
Using one dedicated NXlog node as master collector that forwards logs to SIEM, I also dump all logs into a file and I rotate that file weekly, keeping 4 weeks worth of logs on the collector; this very clean setup is taken from the documentation and I like it - it works well (see Log rotate in documentation, example 103). Problem is: This consumes much disk, so I'll need to compress the rotated file. Can I add compression to that output to compress the rotate-copy? I'd prefer not using the example 113 in said log-rotation documentation page.
Hello,
what makes the way proposes in Example 113
not working for you? That's probably the best way to approach your task.
If you share your limitations - maybe we'll find a workaround.
Regards,
Rafal