Questions tagged [cronolog]

8 questions
11
votes
4 answers

Cronolog vs logrotate

Which log rotation tool do you prefer?
Unknown
  • 1,675
  • 6
  • 20
  • 27
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…
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…
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…
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…
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…
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…
Jé Queue
  • 363
  • 1
  • 3
  • 10