How to rotate multiple log files in folder ?

Solution Verified - Updated -

Issue

  • How to rotate every file in folder excluding a specified file, which should be deleted daily ?
  • One log file should be deleted daily and all other files should be rotated.

Environment

  • Red Hat Enterprise Linux
  • Logrotate

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content