Solved

Apache - cronolog

Posted on 2011-03-22
5
1,373 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
Comment Utility
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 61

Expert Comment

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

Author Comment

by:Raz
Comment Utility
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
Comment Utility
"1 hours" replaced with "1 hour" works
0
 

Author Closing Comment

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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now