RE: [EXT] Re: [users@httpd] Urgent: Apache log is not rotating after the upgrade

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"why are you still using RHEL6?" à It’s an client requirement to continue with RHEL 6.

 

I don’t see such scenario you stated below for the rotation. Do we have any other configuration files to update in RHEL 6 server to Apache log rotation?

 

Thanks & Regards

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

Srikanth Pippari  | V3OPS team.

Email ID : spippari@xxxxxxxxxxxxx

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

 

From: Jim Weill <moondog@xxxxxxxxxxxxxxxxx>
Sent: Tuesday, May 28, 2019 3:55 PM
To: users@xxxxxxxxxxxxxxxx
Subject: [EXT] Re: [users@httpd] Urgent: Apache log is not rotating after the upgrade

 

We have a similar setup and the log actually **does** rotate, but instead of archiving the active log to the next numbered log and renumbering them down the line, it actually instead moves the active log to the next archive number and moves the rest down the line.  So for example, instead of today's log being http24_access_log, it's actually http24_access_log.5 and tomorrow the active log will be http24_access_log.6 until seven days have passed, in which case it will revert back to the expected http24_access_log, and repeat this process over the next seven days.  I have not found a reason for this so far, but I am interested in figuring out whether there is an answer to it other than "why are you still using RHEL6?"

 

jim

 

On Tue, May 28, 2019 at 11:09 AM Srikanth Pippari <SPippari@xxxxxxxxxxxxx.invalid> wrote:

Hello,

 

We have upgraded Apache 2.2 version to Apache 2.4.34 version on Red Hat Enterprise Linux Server release 6.10 (Santiago) server . After the upgrade the log is not rotating  and we also check the log rotation file config looks good .

 

Can some one help me to figure out the issue..

 

Below is the config details of log rotation policy. Location of the file : /etc/logrotate.d/httpd24-httpd

 

/var/log/httpd24/*log {

    daily

    compress

    missingok

    notifempty

    sharedscripts

    delaycompress

    rotate 90

    postrotate

      /sbin/service httpd24-httpd reload > /dev/null 2>/dev/null || true

           endscript

}

 

 

The config locations are different after the upgrade

 

Configuration File location : /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf

Command to stop/start/restart : service httpd24-httpd start/stop/restart

 

Thanks in Advance !!

 

Thanks & Regards

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

Srikanth Pippari  | V3OPS team.

Email ID : spippari@xxxxxxxxxxxxx

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

 


This e-mail message and any files transmitted with it may contain confidential and proprietary information and are intended solely for the use of the individual or entity to which they are addressed. Any unauthorized review, use, disclosure or distribution is strictly prohibited. If you have received this e-mail in error please notify the sender by reply email and destroy all copies of the original message. Thank you for your cooperation.


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux