[Cialug] Logrotate Issues with RHEL 6 on Manual entries

Kelly Slaugh kelly at visionary.com
Tue Dec 16 12:20:32 CST 2014


Thank you Charles that is what I was doing wrong....


Kelly L. Slaugh 

-----Original Message-----
From: cialug-bounces at cialug.org [mailto:cialug-bounces at cialug.org] On Behalf Of cialug-request at cialug.org
Sent: Tuesday, December 16, 2014 12:00 PM
To: cialug at cialug.org
Subject: Cialug Digest, Vol 116, Issue 19

Send Cialug mailing list submissions to
	cialug at cialug.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://cialug.org/mailman/listinfo/cialug
or, via email, send a message with subject or body 'help' to
	cialug-request at cialug.org

You can reach the person managing the list at
	cialug-owner at cialug.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of Cialug digest..."


Today's Topics:

   1. Re: CIALUG Meeting Next Wednesday, please RSVP (Kurt Parker)
   2. Re: Logrotate Issues with RHEL 6 on Manual entries
      (Charles Dunbar)


----------------------------------------------------------------------

Message: 1
Date: Tue, 16 Dec 2014 09:40:41 -0600
From: Kurt Parker <kurtparker23 at gmail.com>
To: Central Iowa Linux Users Group <cialug at cialug.org>
Subject: Re: [Cialug] CIALUG Meeting Next Wednesday, please RSVP
Message-ID: <AC7C285D-148D-453C-B124-1E78E663BE9F at gmail.com>
Content-Type: text/plain;	charset=utf-8

Hey, I?m a noob and will be attending. Just moved to the area and work with Theron. I look forward to meeting everyone. 


Kurt Parker | Milestone Data Center Lead
100 Share Way NW, Altoona, IA 50009
e-mail: kurtparker23 at gmail.com | Mobile: 515-371-1421





------------------------------

Message: 2
Date: Tue, 16 Dec 2014 10:19:06 -0600
From: Charles Dunbar <ccdunbar at gmail.com>
To: Central Iowa Linux Users Group <cialug at cialug.org>
Subject: Re: [Cialug] Logrotate Issues with RHEL 6 on Manual entries
Message-ID:
	<CAEVgq-ghLS60YhjhvSwQ2JahmE_2QGaCJM6EgKkjPmGFzgDD=Q at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

With regards to the -d output, you point `logroate -d` to the config file, not the file you want to rotate.

Charles

On Tue, Dec 16, 2014 at 9:20 AM, Kelly Slaugh <kelly at visionary.com> wrote:
>
> Hello everyone I was wondering if someone has an idea why my Logrotate 
> is not working on a manual entry in the /etc/logrotate.d/httpd config file?
>
> Weekly the logrotate is failing to cycle and compress my logs in the 
> directory given.  This same logrotate command is running successfully 
> on
> RHEL5 but not on RHEL6.  I checked to see if SELinux was causing a 
> problem and that's not it.
>
> When I run the command # logrotate -d file I get the error message "error:
> file access_log too large, probably not a config file.  removing last 
> 0 log configs"  However the log is not too large, it's only 12M.
>
> My Config file states this...  The logs that I need rotated in the 
> first entry are owned by Apache and need to have apache restarted to 
> create new ones.  Should I and the postrotate command just as Apache has for its logs?
>
> //{dir}/[directory]/logs/*log {
>     missingok
>     notifempty
>     sharedscripts
>     postrotate
>     endscript
> }
>
>
> /var/log/httpd/*log {
>     missingok
>     notifempty
>     sharedscripts
>     delaycompress
>     postrotate
>         /sbin/service httpd reload > /dev/null 2>/dev/null || true
>     endscript
> }
>
> Any help is greatly appreciated.
>
> Thank you
>
> Kelly L. Slaugh // Systems Administrator Visionary Services, Inc.
>
> P1: 515.369.3545 ext. 116
> visionary.com
>
>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>


------------------------------

_______________________________________________
Cialug mailing list
Cialug at cialug.org
http://cialug.org/mailman/listinfo/cialug


End of Cialug Digest, Vol 116, Issue 19
***************************************


More information about the Cialug mailing list