LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2012, 05:57 PM   #1
xresa
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Rep: Reputation: Disabled
apache logs centos


Hi, my apache with default config generate logs with:

"access_log.4" day 1 to 8
"access_log.3" day 9 to 14
"access_log.2" day 15 to 23
"access_log.1" day 24 to 29

and "access_log" with actual day, the logs of the last month has been automatic deleted, can anymore explain me about this?

Thanks.
 
Old 08-01-2012, 09:19 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,682

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
See /etc/logrotate.d
 
1 members found this post helpful.
Old 08-02-2012, 04:43 AM   #3
xresa
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi, in /etc/logrotate.d/httpd i have this code:

Quote:
/var/log/httpd/*log {
missingok
notifempty
sharedscripts
postrotate
/sbin/service httpd reload > /dev/null 2>/dev/null || true
endscript
}
Is normally explained in the first post with this code?

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 5.5 is rebooting frequently without any logs on the server cvhbsk Linux - General 2 02-05-2011 01:20 AM
Centos 5.x: Postfix not sending emails via telnet, no error on logs? klabacita Linux - Server 2 12-09-2009 03:47 AM
canīt start xserver on centos ( logs included) elvis1 Linux - Newbie 5 07-14-2009 07:26 PM
Apache Logs Valso Linux - Software 2 11-05-2004 04:13 PM
Apache logs - ???Linux logs??? mylo2003 Linux - General 3 08-07-2003 05:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration