Error Log Overflow Unix
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Remove old error log files up vote 0 down vote favorite error_log files in /var/log/httpd/ are consuming a lot of disk space. There are error_log.1, error_log.2 files as well. I will like to delete the old files automatically and keep only the current one. unix share|improve this question edited Oct 14 '09 at 7:46 skaffman 277k63618655 asked Oct 14 '09 at 6:02 shantanuo 7,66635109196 Remember that serverfault.com exists for such questions. –Julien Roncaglia Oct 14 '09 at 7:40 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote accepted You might want to investigate logrotate. share|improve this answer answered Oct 14 '09 at 6:15 JB. 19.2k85690 In this case, it seems as though the logs are already being rotated -- they should investigate what their current log rotation strategy is, and modify it. –ephemient Oct 14 '09 at 15:20 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged unix or ask your own question. asked 7 years
Join INTELLIGENT WORK FORUMSFOR COMPUTER PROFESSIONALS Log In Come Join Us! Are you aComputer / IT professional?Join Tek-Tips Forums! Talk With Other Members Be Notified Of ResponsesTo Your Posts Keyword Search One-Click Access To YourFavorite Forums Automated SignaturesOn Your Posts Best Of All, It's Free! Join Us! *Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines Promoting, selling, recruiting, coursework and thesis posting is forbidden.Tek-Tips Posting Policies Jobs Jobs from Indeed What: Where: jobs by Link To This Forum! Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.Just copy http://stackoverflow.com/questions/1564500/remove-old-error-log-files and paste the BBCode HTML Markdown MediaWiki reStructuredText code below into your site. SCO: SCO Unix Forum at Tek-Tips HomeForumsMIS/ITOperating Systems - UNIX basedSCO: SCO Unix Forum error log overflow thread58-275675 Forum Search FAQs Links MVPs error log overflow error log overflow murphix (TechnicalUser) (OP) 18 May 02 17:24 Hi,I have a server with SCO 5.0.5While publishing/var/adm/messages it appears to several times htfs:no space one dev hd(1/42) http://www.tek-tips.com/viewthread.cfm?qid=275675 and once error log overflow space disk by df - vk 55% OKIt seems than that occurs during transfer ftp? Does somebody have an idea? Red Flag This Post Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. Cancel Red Flag SubmittedThank you for helping keep Tek-Tips Forums free from inappropriate posts.The Tek-Tips staff will check this out and take appropriate action. Close Reply To This Thread Posting in the Tek-Tips forums is a member-only feature. Click Here to join Tek-Tips and talk with other members! Resources Join | Indeed Jobs | Advertise Copyright © 1998-2016 ENGINEERING.com, Inc. All rights reserved.Unauthorized reproduction or linking forbidden without expressed written permission. Registration on or use of this site constitutes acceptance of our Privacy Policy. Close Box Join Tek-Tips Today! Join your peers on the Internet's largest technical computer professional community.It's easy to join and it's free. Here's Why Members Love Tek-Tips Forums: Talk To Other Members Notification Of Responses To Questions Favorite Forums One Click Access Keyword Search Of All Posts, And More... Register now while it's still free! Already a member? Close this window and log in. Join U
company based in Santa Cruz, California which was best known for selling three UNIX variants for Intel x86. Search Forums Show Threads Show Posts Tag Search Advanced Search Unanswered Threads Find All Thanked Posts Go to http://www.unix.com/sco/34563-no-space-dev-hd-1-42-a.html Page... unix and linux commands - unix shell scripting No space on dev HD (1/42) SCO Thread Tools Search this Thread Display Modes #1 01-18-2007 berkmillionare Registered User https://www.morpheusdata.com/blog/2015-11-05-how-to-hunt-down-hidden-server-error-logs Join Date: Jan 2007 Last Activity: 4 October 2010, 6:12 PM EDT Posts: 4 Thanks: 0 Thanked 0 Times in 0 Posts No space on dev HD (1/42) Good Evening to all, I am having a problem error log with our unix server, I give you a little history. last we the logins started getting slower and slower, when we tried to print nothing came out on the network printer, the system had an error ("printer file close error unit=0). Checking the server there are two alarms that come up, (NOTICE HTFS: NOT SPACE ON DEV HD (1/42) that will roll in for awhile then we get (NOTICE: HWARNING: ERR: ERRORLOG OVERFLOW 0 SPACE ON error log overflow DEV HD 1/42). Logged into the sever and removed most temp files which amounted to about 30 megs, but the errors still come up. Next step was to try a soft reboot using "shutdown -g:0" will not boot down, comes up with an error (warning:system shutdown started at 'cat $shutdown'#). Any help would be greatly appreciated Rich, Remove advertisements Sponsored Links berkmillionare View Public Profile Find all posts by berkmillionare #2 01-19-2007 vogonpoet Registered User Join Date: Jan 2007 Last Activity: 22 January 2007, 3:59 AM EST Location: Novi Sad, Serbia Posts: 1 Thanks: 0 Thanked 0 Times in 0 Posts Hi, Sounds like you can help me - I have a mass spectrometer at work which runs on top of a xenix system, and it keeps on telling me I have no space on my dev 1/40... Am a bit of a unix newbie but have checked around, and my /dev/root/ partition turns out to be 100% full. Can I delete everything in the /tmp directory reasonably safely, or might there be stuff in the subdirectories which is necessary for nonsmooth running of system? The /tmp/perms and /tmp/xnx427 directories sound a bit intimidating... Also read to try to find any core dumps and delete them, but cant get my find statement working, and everytime I try to read man find entry
Morpheus The Open Web Application Security Project (OWASP) offers three tips for maintaining trustworthy server-activity logs: For compliance, audit, and liability purposes, logs should be created in a way that ensures they can't be overwritten or deleted. Logging frequency depends on the size and volume of the system, but all logs should be checked regularly to ensure the function is active (by running a simple cron job, for example). Ensure that users aren't shown stack traces, private information, or other sensitive details in error messages; stick with generic messages, such as the standard 404 and 500 HTTP status response codes. The Apache documentation explains that the error log file in Unix is usually error_log, and in Windows is error.log; Unix systems may also direct the server to send errors to syslog or pipe them to an external program. To continuously monitor the error log, such as during testing, use this command: tail -f error_log. Other Apache log files are process ID (logs/httpd.pid), which is used to restart and terminate the daemon; the ScriptLog, which records the input to and output from CGI scripts; and the RewriteLog, which analyzes the transformation of requests by the rewriting engine. What to do when a PHP error-log file goes missing? A Stack Overflow post from October 2012 highlights how challenging it can be to track down a PHP error log that isn't where you expect it to be. One solution offered was to add this line to the /etc/php.ini file: /var/log/php-scripts.log (other log-discovery options are shown in the image below). The PHP error_log file can be customized to hide errors from users, log errors to syslog, or other purposes. Source: Stack Overflow To find the log-file location of a Linux process, you can use lsof (list open files), as explained in a post on the Slash4 blog. Run the code shown below as a root user: Find all open log files on a Linux server by combining lsof and grep. Source: Slash4 blog You can find the process ID (PID) of httpd, MySQL, or other services using the commands shown below: The lsof and grep commands can be used to find the PID of a pr