FG
💻 Software

LogRotate use regex for filename

Fresh5 days ago
Mar 15, 202618634 views
Confidence Score0%
0%

Problem

I have a custom logging class that creates a log for each instance of the process and adds a unique id to the log file name, example: process.1234.log process.1235.log Also I can add a date/time stamp as well, example: process.1234.03012012.log process.1235.03012012.log Does LogRotate have the abil…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: LogRotate use regex for filename

Low Risk

I don't know if later versions do, but after researching further I found that shell wildcards are supported. Both (match multiple characters) and (match a single character) can be combined to match specific files. As an example, here are patterns wh…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment