Log rotation with automatic *.log file discovery
up vote
0
down vote
favorite
|
I am hosting several websites which each of run their own Python process and write *.log output files, but the directory structure is not standardized. Example:
I'd like to make log rotate autodiscovery these log files and run a log rotation on them, as opposite to manually type in every log file to logrotate conf.
linux logrotate
| ||
feedback
|
1 Answer
active
oldest
votes
up vote
0
down vote
|
Here is a simple Python script for performing auto-discovery and generating logrotate conf file:
| ||
feedback
|
Your Answer
log in |
or
|
required, but never shown
|
discard
By posting your answer, you agree to the privacy policy and terms of service.
Not the answer you're looking for? Browse other questions tagged linux logrotate or ask your own question.
question feed