My Oracle Support Banner

Oracle Linux: How to Create a Custom Log File Rotation by logrotate (Doc ID 2087525.1)

Last updated on MARCH 16, 2023

Applies to:

Linux OS - Version Oracle Linux 5.0 and later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Linux x86

Goal

In this example /var/log/secure.log will be rotated daily and if the log file size exceeds 100mb rotate process will start.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.