Logrotate configuration to create new file and compress old files.
Hi I am relatively new to using logrotate on my Solaris 10 update 11 server and looking for some tips on setting up a config file.
I currently have a folder with 5 large log files of varying names for different processes, they are all in use by certain functions in an application. Consequently I cannot just rename and created new files.
I understand that our supplier recommended using logrotate to do this as it is already on the server.
These files are so large I could do with truncating them to save space.
Has anyone got examples of what I would put in the config file to create a new log of the same names, and copy, compress and truncate the copied logs to a reasonable size?