Solved

Apache - cronolog

Posted on 2011-03-22
5
1,421 Views
Last Modified: 2012-06-27
I have made my Apache(2.2.17) to use cronolog(1.7.0). It is giving error:

piped log program '/opt/httpd/etc/scripts/cronolog --symlink=/httpd/logs/web-qa/ssl_request_log --period "1 hours" --time-zone=CST /htt
pd/logs/web-qa/OLD/ssl_request_log.%Y%m%d-%H%M%S' failed unexpectedly
/opt/httpd/etc/scripts/cronolog: invalid explicit period specification ((null))

The same cronolog is working fine for Apache 2.2.11
Do I need to use the --period parameter in someother way for Apache2.2.17 ?
0
Comment
Question by:Raz
  • 4
5 Comments
 

Author Comment

by:Raz
ID: 35188162
I have configured cronolog in httpd.conf as below.

  ErrorLog '|/opt/httpd/etc/scripts/cronolog --period="1 hour" --time-zone=CST --symlink=/httpd/logs/web-qa/error_log /httpd/logs/we
b-qa/OLD/error_log.%Y%m%d-%H%M%S'
0
 
LVL 62

Expert Comment

by:gheist
ID: 35194402
cronolog is redundant since long ago.... http://httpd.apache.org/docs/1.3/logs.html#piped
0
 

Author Comment

by:Raz
ID: 35195960
In the link you have given, it has been given that cronolog is much more flexible. So please tell me how to use cronolog without the above error i have given.
0
 

Accepted Solution

by:
Raz earned 0 total points
ID: 35689653
"1 hours" replaced with "1 hour" works
0
 

Author Closing Comment

by:Raz
ID: 35718366
The user comment is not useful. I have found my solution
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question