Logrotate fails with error "lines must begin with a keyword or a filename (possibly in double quotes)" due to missing log file paths in custom configuration
Issue
-
The
logrotateservice fails to execute, or runninglogrotatein dry-run/debug mode produces the following error messages:error: <filename>:<line> lines must begin with a keyword or a filename (possibly in double quotes) error: found error in file <filename>, skipping
Environment
- Red Hat Enterprise Linux 9
- logrotate
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.