Displaying 15 results from an estimated 15 matches for "dateext".
2014 Apr 09
3
Logrotate errors
...with [1]
Apr 8 21:01:01 plzfnsm02 logrotate: ALERT exited abnormally with [1]
Apr 8 22:01:01 plzfnsm02 logrotate: ALERT exited abnormally with [1]
Apr 8 23:01:01 plzfnsm02 logrotate: ALERT exited abnormally with [1]
It seems the problem if with this logrotate.conf (executed every hour):
create
dateext
/srv/www2/logs/viewer.log {
size 512k
create 0640 www www
missingok
rotate 7
compress
delaycompress
copytruncate
notifempty
}
Doing a debug:
[root at www02 ~]# logrotate /data/config/etc/logrotate.conf -dv
reading config file /data/config/etc/logrotate.conf
reading config...
2018 Nov 11
0
CentOS 6: Logrotate / selinux problem
...mpty log files are not rotated, old logs are removed
considering log /var/log/cups/access_log
log needs rotating
considering log /var/log/cups/error_log
log needs rotating
considering log /var/log/cups/page_log
log needs rotating
rotating log /var/log/cups/access_log, log->rotateCount is 4
dateext suffix '-20181111'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
rotating log /var/log/cups/error_log, log->rotateCount is 4
dateext suffix '-20181111'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
rotating log /var/log/cups/page_log, log->...
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
#postrotate
# systemctl stop samba &> /dev/null
# systemctl start samba &> /dev/null
#endscript
}
--
My problem is, when logrota...
2007 Jul 31
0
Bug#435443: logcheck: have logtail handle rotated logs by itself
...use logtail2 easier to handle. Additionally,
detection of rotated log files is done using a plug-in scheme which
allows local admins to easily plug in code to detect their local
rotation scheme. Code for logtails's current code (savelog, logrotate)
is included, as well as new code for logrotate dateext.
It is my plan to encourage users of logtail to migrate over to
logtail2 (which should be a drop-in replacement modulo the new
behavior), so that logtail can be removed in a future package version.
The code is "kind of" tested, as I only have systems available that
use a rather customiz...
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:
++++++++++++++++++++++++++++++++++++++++++++++++++++
# see "man logrotate" for details
# rotate log files weekly
#w...
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 root
>> #postrotate
>> # systemctl stop samba &> /dev/null
>> # systemctl start samba &> /...
2007 Jan 15
1
Bug#406973: logtail misses lines in rotated file
Package: logtail
Version: 1.2.52
Severity: normal
Tags: patch
Hi,
When a logfile is rotated, logtail misses the lines logged between the
last logtail run and the logfile rotation.
The attached patch allows to set an alternate logfile that logtail tries
to use as the old logfile if the inode has changed.
It can be used as:
logtail -f /var/log/syslog -a /var/log/syslog.1
(Please note that this
2007 Jan 08
2
SV: Manage 'full' log file
...configuration. Notice the invocation of
Asterisk's CLI "logger reload" command so as to close the
old files and open new ones.
Cheers,
--
Ex Vito
/var/log/asterisk/messages /var/log/asterisk/queue_log /var/log/asterisk/event_log {
weekly
rotate 52
dateext
compress
delaycompress
nocreate
missingok
sharedscripts
postrotate
/usr/sbin/asterisk -rx "logger reload"
endscript
}
_______________________________________________
--Bandwidth and Colocation provided by Easynews.c...
2016 Mar 07
0
[Bug 2294] Detect renamed files and handle by renaming instead of delete/re-send
...iles. It would be great if rsync could detect this to just
> transfer the new file and rename the old ninety-nine (or
> however-many).
It is not so hard to add the following to your logroate.conf.
Just saying.
# Add a date extension instead of just a number for rsync hardlinked
# backups.
dateext
dateformat -%Y-%m-%d-%s
Karl <kop at meme.com>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein
--
You are receiving this mail because:
You are the QA Contact for the bug.
2007 Jan 08
2
Manage 'full' log file
Hi,
I need some help on how to manage the "full" log file. It's getting
quite large now and I'd like to clear it. Is there any simple command
for this or should I just delete the file (need to be sure this won't
affect the system).
Also - how do I keep the log file from growing so large?
Thanks!
Regards,
Jan
2008 Nov 30
0
DO NOT REPLY [Bug 2294] Detect renamed files and handle by renaming instead of delete/re-send
...eply to comment #5)
> Thanks. This will be especially useful for log directories where logrotate is
> incrementing the filename number at each rotation period (httpd.10.gz ->
> httpd.11.gz).
Since I mentioned this specific use case, I should comment that I recently
discovered the 'dateext' option to logrotate which provides a complete
workaround in this scenario (which rsync handles perfectly) and might be the
better solution for this case in general.
Back on topic, there's still great utility in detecting other rename cases, of
course (I often see big .iso's get rename...
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
+++
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
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
2012 Mar 22
1
Help debugging an issue with --fuzzy --fuzzy and --link-dest
...re out the problem.
The double use of --fuzzy is based upon https://bugzilla.samba.org/
show_bug.cgi?id=4056 which should be present on both sides of the
transfer since one is running 3.0.7 and the other 3.0.3.
What I'm copying is a /var/log/apache2 directory build w/o logrotate's
"dateext" option. So on day N a given log file might be named
error_log.2.gz while on day N+1 that same file will be named
error_log.3.gz.
I am using --link-dest is a dirvish-like way to build complete snapshots
while only moving changes. I have tested this with --compare-dest as
well.
The issu...