- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Apache logs
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2003 09:07 AM
тАО04-24-2003 09:07 AM
Apache logs
I have noticed really big Apache logs on production, what is the best way of manage these logs?
-rw-r--r-- 1 root other 944458063 Apr 24 10:23 ssl_engine_log
-rw-r--r-- 1 root other 976324223 Apr 24 10:23 error_log
-rw-r--r-- 1 root other 66160272 Apr 24 13:04 ssl_request_log
-rw-r--r-- 1 root other 62580157 Apr 24 13:04 access_log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2003 09:11 AM
тАО04-24-2003 09:11 AM
Re: Apache logs
Otherwise these logs can be deleted and then touch these files so apache can start writing again on these files. Do a tail on these files and see if it contains any important informations.
Logratate can be downloaded from HP's porting centre.
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2003 09:20 AM
тАО04-24-2003 09:20 AM
Re: Apache logs
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/logrotate-2.5/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2003 10:24 AM
тАО04-24-2003 10:24 AM
Re: Apache logs
which can be used for this purpose. See:
http://httpd.apache.org/docs/logs.html#piped
http://httpd.apache.org/docs-2.0/logs.html#piped
If you don't mind restarting Apache, you can
write a script using "apachectl" or modify
"apachectl" itself to rotate the logs. See:
http://httpd.apache.org/docs/logs.html#rotation
http://httpd.apache.org/docs-2.0/logs.html#rotation
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2003 09:57 PM
тАО04-26-2003 09:57 PM
Re: Apache logs
Some older versions of Apache access the logs by their i-node reference, not the log's filenames. The effect was: if you moved the logs to .old or anything like that (in the same filesystem), the old log continued to be written, even after you created the new one. If you removed the old log (after copying it to somewhere else, for example), Apache would go crazy even if you created the new log immediately after. The problem would never happen if you zeroed the log file without changing the i-node reference (for example, issuing a "> access_log" command).
I've observed that on 1.1 times; it doesn't happen anymore on 1.3.19 (which is not so new) and above, but I don't know exactly which version fixed that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2003 08:30 PM
тАО04-27-2003 08:30 PM
Re: Apache logs
At midnight month end, I move the files to a work location, touch the original locations to start the files fresh for the next month and life goes on.
Here's the script. Attached.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com