Displaying 20 results from an estimated 3000 matches similar to: "CentOS 5.4 logrotate and syslog"
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
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
2018 May 14
1
Logrotate
Am 14.05.2018 um 21:08 schrieb Reindl Harald via samba:
> Am 14.05.2018 um 20:56 schrieb Carlos via samba:
>> /opt/samba/var/log.samba
>>
>> {
>> rotate 10
>> daily
>> compress
>> dateext
>> size 100M
>> nomail
>> missingok
>> notifempty
>> create 644 root
2011 Oct 19
2
Silly logrotate question
Ok, I have Googled this and either I am not asking the right way or I just
can't see what's in front of me (sorry)...
We have log files called app.2011-10-119.log (with the date changing every
day). The log is created by the application each day at midnight.
I have logrotate set to rotate files ending in .log at 4am, with
copytruncate on by default.
If I list the files I see all the old
2018 Nov 11
0
CentOS 6: Logrotate / selinux problem
Ever since a recent power failure I have been getting a Logrotate error. My
machine is on a UPS -- it shutdown cleanly, but I suspect that its BIOS/RTC
battery is dead, since the machine came up thinking it was 1982 :-(. I reset
the clock and everything is fine, *except* I had to delete Logrotate's state
files (which had bad dates). But now Logrotate is raising the error:
error: error
2009 May 27
1
[PATCH node] Compress all rotated logs.
Removes the delaycompress line so that every rotation is compressed.
Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
logrotate/ovirt-logrotate.conf | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/logrotate/ovirt-logrotate.conf b/logrotate/ovirt-logrotate.conf
index 8747f59..8b89a2d 100644
--- a/logrotate/ovirt-logrotate.conf
+++
2007 Jan 08
2
SV: Manage 'full' log file
Thanks for the quick response!
I read about logrotate at voip-info.org but I didn't quite understand it. I'm no asterisk/linux expert unfortunately.
First of all. What exactly does happen when I run:
/usr/sbin/asterisk -rx 'logger rotate'
Does it clear the file and create a new one? Can I run this manually without any interruption in the system?
And what does the script do? I
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
2010 Mar 15
1
log rotation not working
Hello,
I've got a Centos 5.4 box that is not rotating it's mail logs. I just
found out about this, the file is considerably large. I've included my
log rotation configs if anyone has any suggestions i'm open to them.
Thanks.
Dave.
/etc/rsyslog.conf:
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.*
2023 Nov 28
1
missing file in logrotate config
Hi
you could try a file /etc/logrotate.d/samba-local with this content
/var/log/samba/log.samba-dcerpcd
/var/log/samba/log.rpcd_classic
/var/log/samba/log.rpcd_winreg
/var/log/samba/log.samba-bgqd
/var/log/samba/log.rpcd_spoolss {
?? ?weekly
?? ?missingok
?? ?rotate 7
?? ?compress
?? ?delaycompress
?? ?notifempty
}
Le 27/11/2023 ? 10:12, Stefan G. Weichinger via samba a ?crit?:
> Am
2012 Jul 23
1
n00b rsyslog.conf question - how to separate local syslog from network appliance syslog?
I have several network appliances, and I want aggregate their syslog
output for later analysis. Eventually I might think about a Splunk
box, but for the interim I'm hoping to just build a CentOS 6 syslog
server and have it aggregate everything on it for quick review.
I installed rsyslog and am looking through the /etc/rsyslog.conf file
for what I configure to (a) listen for syslog input from
2011 Jul 18
0
SQUID Logrotate
Hi all,
i have problem, after uprade CentOS 5.5 to 5.6, Logrotate don't work
on two proxy servers. I have installed :
squid-2.6.STABLE21-6.el5
logrotate-3.7.4-9.el5_5.2
On first server , squid logs never rotated, config is here
cat /etc/logrotate.d/squid
/var/log/squid/access.log {
weekly
rotate 5
copytruncate
compress
notifempty
missingok
}
/var/log/squid/cache.log
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
2016 Mar 06
2
logrotate script error
Hey guys,
I'm trying to rotate a logstash log that can grow pretty large. 3.4GB last
I saw!
And that's because the logrotate script I came up with didn't work.
The error I get on a syntax check is this:
#logrotate -f logstash
size: '100M': No such file
size: '100M': No such file
size: '100M': No such file
size: '100M': No such file
size:
2007 Jul 31
0
Bug#435443: logcheck: have logtail handle rotated logs by itself
Package: logcheck
Version: 1.2.58.0
Severity: wishlist
Tags: patch
The attached patch is the diff from current svn trunk to my svn branch
zugschlus200707. It introduces a new binary package logtail2 with a
new binary logtail2 which enhances logtail substantially. logtail2 can
process rotated logs internally, which makes the code inside logcheck
and other programs that use logtail2 easier to
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
3
Sort logfiles at rotation time
Hi,
I want to be certain that my apache and varnish logfiles are in strict
date order when rotated. I'd like to run a sort command against them
before they're compressed.
I've had a look at the logrotate man page, and it looks like I can use
a postrotate/endscript to do this. However, I can see any reference
in the documentation for how to operate on the file. All the examples
2016 Mar 06
0
Re: logrotate script error
On Sun, 6 Mar 2016 04:34, Tim Dunphy <bluethundr at ...> wrote:
> Hey guys,
>
> I'm trying to rotate a logstash log that can grow pretty large. 3.4GB last
> I saw!
>
> And that's because the logrotate script I came up with didn't work.
>
> The error I get on a syntax check is this:
>
> #logrotate -f logstash
> size: '100M': No such file
2016 Jul 28
2
ElasticSearch Logrotate not working
Hey guys,
I have this log rotation script setup in my /etc/logrotate.d folder
/var/log/elasticsearch/*.log {
daily
rotate 100
size 50M
copytruncate
compress
delaycompress
missingok
notifempty
create 644 elasticsearch elasticsearch
}
And I notice that log files are still being generated that are upwards of 7
or 8 GBs. Can anyone point out to me where the
2007 Mar 11
2
logrotate, syslog, and chsh
I'm noticing that logrotate's default configuration for rotating /var/
log/secure and /var/log/messages partially fails if root's shell is
set to /bin/tcsh (via chsh). (Running on CentOS 4.4;
logrotate-3.7.1-5.RHEL4).
What seems to be happening is that the logrotate.d/syslog postrotate
command runs:
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null