Oracle Solaris File Systems and Disk Management (MOSC)

MOSC Banner

Logrotate configuration to create new file and compress old files.

edited Sep 21, 2015 9:49AM in Oracle Solaris File Systems and Disk Management (MOSC) 2 commentsAnswered ✓

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?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center