Displaying 20 results from an estimated 5000 matches similar to: "logrotate and httpd logs"
2010 Jan 15
4
Logrotate in CentOS 5.4 more brutal (to httpd at least) than in 5.3?
I've just updated a few CentOS 5.3 servers to 5.4. One of them were a Apache Webserver. Doing a diff/check on the new ".rpmnew" config files that are made, I saw that the logrotate command for apache was changed. In 5.3 it did a reload, but in 5.4 it does a hard kill:
CentOS 5.3:
/var/log/httpd/*log {
missingok
notifempty
sharedscripts
postrotate
2006 Dec 30
1
logrotate: how to email logs with mutt?
Hello,
next week I'll install logrotate on a centos 4.4 server via yum.
The man page says that the default mail command is /bin/mail -s, but
there is no such binary on Centos.
I do have mutt installed, however, so I would like to use it. Ideally,
I would like to have logrotate send logs with mutt as attachments like
this:
mutt me at home.account -a compressed_log_file -s "here are
2006 Sep 27
1
Slightly OT: Cron for Logrotate and Squid
Howdy list,
Hey does anyone know what the best cron job is to call logrotate to run
the squid logrotations? -Or the subscribe address for a squid or
logrotate mailing list (can't seem to find anything other than the usual
MARC archives).
I have this in /etc/logrotate.conf
# rotate log files daily, they get too big otherwise, another story.
daily
# keep 8 weeks worth of backlogs e.g. 60
2008 Jul 31
2
Logrotate is not happing without -f option
Dear All,
Currently i am using CentOS 4.4 Linux
Logrotate is not happen without -f option
I have executed the following logrotate /etc/logrotate.conf manually and
Logrotate command exit without any error messages
If i executed with -f option then Logrotate will happen
I am not sure why this is happening. Can some one throw light on this.
Regards
-S.Balaji
2014 Apr 09
3
Logrotate errors
Hi all,
I have a problem with logrotate and I don't know why. In
/var/log/messages appears these errors:
Apr 8 15:01:01 plzfnsm02 logrotate: ALERT exited abnormally with [1]
Apr 8 16:01:01 plzfnsm02 logrotate: ALERT exited abnormally with [1]
Apr 8 17:01:01 plzfnsm02 logrotate: ALERT exited abnormally with [1]
Apr 8 18:01:01 plzfnsm02 logrotate: ALERT exited abnormally with [1]
Apr 8
2005 Aug 23
1
logrotate broken on 4.1
Hi all:
logrotate is broken on my stock 4.1 install. After hunting and
hunting I found there is a bug filed with Redhat on the issue.
logrotate fails becasue my /tmp partition is mounted noexec. I
understand it is that way for security reasons. The box in question
is on a dedicated hosting site and that's the way it was handed off to
me, built.
Some said setting TMPDIR=/var/tmp;export
2023 Nov 27
2
missing file in logrotate config
Am 28.03.23 um 10:40 schrieb Rowland Penny via samba:
>
>
> On 28/03/2023 08:40, Arnaud FLORENT via samba wrote:
>> Hello
>>
>>
>> i am running samba 4.16 as AD-DC controller on Ubuntu 20.04 using
>> www.corpit.ru/mjt/packages/samba focal/samba-4.16 repository
>>
>>
>> everything is running fine but i have few log files in /var/log/samba/
2023 Mar 28
1
missing file in logrotate config
On 28/03/2023 08:40, Arnaud FLORENT via samba wrote:
> Hello
>
>
> i am running samba 4.16 as AD-DC controller on Ubuntu 20.04 using
> www.corpit.ru/mjt/packages/samba focal/samba-4.16 repository
>
>
> everything is running fine but i have few log files in /var/log/samba/
> are not handl by /etc/logrotate.d/samba
>
> log.samba-dcerpcd
>
>
2015 Sep 24
2
Logrotate problems
Hi Y'all,
We have nginx set up and we are having problems with logrotate. The
permissions and users do not seem to be any different from other machines
that are working ok however the /var/log/nginx does have a directory in
there that we are using to collect some special log stuff.
Could this subdirectory be interfering with the logrotate process?
ta
Andrew
[root@ ~]# logrotate -d
2023 Dec 06
2
missing file in logrotate config
06.12.2023 10:01, Stefan G. Weichinger via samba:
> /var/log/samba/log.rpcd_* {
> log.rpcd_spoolss
> log.rpcd_spoolss.1
> log.rpcd_spoolss.1.1
> log.rpcd_spoolss.1.1.1
> log.rpcd_spoolss.1.1.1.1
This seems to be a limitation/defect of logrotate itself.
At first you had just log.rpcd_spoolss, and at first logrotate run
it rotated it to log.rpcd_spoolss.1, - now you have 2 files
2009 Sep 23
3
logrotate and regular expressions
I am trying to use logrotate to rotate our web logs for our various
vhosted sites to cut down on space and rotate out old logs that are not
necessary to keep around personally. What Im curious to find out, is
how supported extended regular expressions is within the logrotate.conf
file. More specifically, will logrotate be smart enough to decipher the
following:
2018 May 14
3
Logrotate
Hi!
I have one problem with my logrotate.
Samba version:
Samba 4 7.7 (compilated)
S.O.:
Ubuntu 14.04 /16.04
Samba logs file:
/opt/samba/var/
Logrotate File:
cat /etc/logrotate.d/samba
--
/opt/samba/var/log.samba
{
rotate 10
daily
compress
dateext
size 100M
nomail
missingok
notifempty
create 644 root root
2008 Aug 21
3
What fires logrotate
I've been taking a look at how RedHat (and CentOS) handles logrotate.
According to the man page, logrotate is supposed to be fired by cron.
But when I look at root's crontab
$ sudo crontab lu root
no crontab for root
What exactly fires logrotate (and other scheduled events like
"logwatch", which ends up in root's inbox)?
=== Al
2012 Apr 27
1
fail2ban logrotate failure
I got the fail2ban from epel.
There were a number of issues relating to using a log file...
logwatch was looking for both fail2ban and fail2ban.log
logrotate file fail2ban added looked for fail2ban.log and then reset
itself to syslog
fail2ban itself went to syslog, over riding its fail2ban.log.
took a while, but I use /var/log/fail2ban now, that finally worked
through logrotates and logwatch.
2006 Jan 03
2
date in logrotate
Quick logrotate question for the group. To comply with a PHB mandate,
I need to keep our apache logs for a minimum of 2 years, and will be
periodically required to hand over chunks of the logs from specific
dates/times. While extending the timeframe of logrotate is easy, I've
found that there's no elegant solution in the RH/CentOS logrotate for
appending dates to the filename. I'm
2007 Apr 13
1
Logrotate error?
This was in root's mail on a newly-installed CentOS-5 system.
To: root at beauregard.localdomain
Content-Type: text/plain; charset="ANSI_X3.4-1968"
Subject: Anacron job for 'beauregard.localdomain' cron.daily
/etc/cron.daily/logrotate:
error: sa-update:3 unknown option 'notifyempty' -- ignoring line
^
2009 Nov 09
1
CentOS 5.4 logrotate and syslog
Anyone having problems with logrotate and CentOS 5.4?
Although I have /etc/logrotate.d/mail (contents below) to rotate my maillog
file, it fails to do it automatically:
/var/log/maillog {
compress
dateext
maxage 365
rotate 60
size=+1024k
missingok
postrotate
/etc/init.d/MailScanner restart
endscript
}
++++++++++++++++++++++++++++
logrotate.conf:
2015 Sep 08
1
How to rebuild logrotate.status
I have a problem in that at first all my log files were dated 12-31-1969
and logrotate has:
# more /var/lib/logrotate.status
logrotate state -- version 2
"/var/log/yum.log" 1969-12-31-20:26:1
"/var/named/data/named.run" 1969-12-31-20:26:1
"/var/log/httpd/error_log" 2015-8-27-4:43:1
"/var/log/wtmp" 1969-12-31-20:26:1
"/var/log/chrony/*.log"
2023 Mar 28
1
missing file in logrotate config
Hello
i am running samba 4.16 as AD-DC controller on Ubuntu 20.04 using
www.corpit.ru/mjt/packages/samba focal/samba-4.16 repository
everything is running fine but i have few log files in /var/log/samba/
are not handl by /etc/logrotate.d/samba
log.samba-dcerpcd
log.rpcd_classic
log.rpcd_winreg
log.samba-bgqd
log.rpcd_spoolss
i guess those files size will not grow more than max log
2015 Sep 24
1
Logrotate problems
It?s interesting in your world, where ?broken? is ?functions exactly as it is documented to work?
If you want it to match subdirectories then you should add to the logrotate, or add another one yourself for each subdirectory. It?s not hard, and it?s certainly not broken. It does what you tell it to do.
On Sep 24, 2015, at 6:33 AM, Andrew Holway <andrew.holway at gmail.com> wrote:
> Hmm,