Questions tagged [cronolog]
8 questions
11
votes
4 answers
8
votes
1 answer
Rotating logs generated by a process that logs to stdin
I have a long running process, that writes its log file to stdout. I would like to save this output to different files, automatically maintain these files (like deleting/archiving the old ones), without restarting the main process.
On solution would…
![](../../users/profiles/9349.webp)
SztupY
- 235
- 3
- 12
3
votes
1 answer
Compress logs rotated with cronolog
I have a bunch of servers(Centos 5.x) with Apache that have their logs rotated with cronolog. What is the best strategy for compressing and deleting those logs automatically after a certain time?
CustomLog "|/usr/sbin/cronolog…
![](../../users/profiles/53462.webp)
palto
- 209
- 3
- 12
3
votes
1 answer
How Do I rotate the PHP Error Log?
This is actually a two part question. I've got a LAMP configuration and a web site that relies heavily on the error_log functionality built into PHP. The error log is growing rather large in size.
My first question is can I configure PHP…
Jay
2
votes
1 answer
Compress all apache log files which don't have any symlink pointing to them
I'm using cronolog to let the apache log files rotate.
I'm using fail2ban to monitor those log files and ban in case of abuse.
There's always an access.log symlink which is created by cronolog and points to the current log file.
Each night, I run a…
![](../../users/profiles/180070.webp)
Fox
- 952
- 2
- 12
- 21
1
vote
2 answers
Cronolog and virtual host logging
So, I've been using cronolog for years with this directive:
SetEnv origin SND
ServerName sandman.net
CustomLog "|/usr/bin/cronolog [..]/logs/SND/log_%Y-%m.txt" combined
Problem is that with a lot of virtual…
![](../../users/profiles/19369.webp)
Sandman
- 349
- 1
- 4
- 15
0
votes
2 answers
Cannot locate currently running cron jobs
I know this is a dumb problem, but I cannot seem to locate/access a group of cron jobs that I have running (which I know are running, because everything is working properly and we can see the expected output of the scripts the crons are calling) on…
![](../../users/profiles/326053.webp)
AdjunctProfessorFalcon
- 101
- 5
0
votes
1 answer
Does Apache spawn piped logger on each HTTP request?
I am examining a high-volume Apache prefork site and noticing that many log entries such as:
CustomLog '|/foo/bar/cronolog -foo -bar'
RewriteLog '|/foo/bar/cronolog -bar -foo'
When apache logs the request or the rewrite is cronolog spawned for EACH…
![](../../users/profiles/24452.webp)
Jé Queue
- 363
- 1
- 3
- 10