The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
70 views

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 ...
4
votes
1answer
569 views

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), ...
3
votes
1answer
648 views

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? ...
0
votes
0answers
65 views

Prevent cronolog from splitting/cutting lines?

I'm using cronolog to dump my output into datetime stamped files (after asking here on SF). However cronolog will split a line in the middle and spread one line across multiple files if the input ...
1
vote
2answers
559 views

Cronolog and virtual host logging

So, I've been using cronolog for years with this directive: <VirtualHost *:80> SetEnv origin SND ServerName sandman.net CustomLog "|/usr/bin/cronolog [..]/logs/SND/log_%Y-%m.txt" combined ...
1
vote
1answer
3k views

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. ...
0
votes
1answer
204 views

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 ...
8
votes
4answers
4k views

Cronolog vs logrotate

Which log rotation tool do you prefer?