Improve the efficiency (runtime + storage) of collecting log files by writing the log files directly into a .tar.xz file rather than copy to a directory then tar and compress it and deleting the old directory.
This inefficiency will be more evident when writing to a network share (nfs/smb)
Ref: #23644