Displaying 20 results from an estimated 9000 matches similar to: "Manually rolling logfiles over"
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
2017 Nov 30
4
Log rotation issue
Hi,
We recently migrated the samba-ad-dc from 4.6.5 to 4.7.1. Over a period
of last 15 days or so we have been observing that although the samba log
rotates, upon rotation, samba will start writing the logs to both the
main log file and the <main log>.old file simultaneously. While, the
main log file rotates properly, instead of deleting old file and create
a new one on rotation, samba
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:
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
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
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 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
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:
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
2007 Apr 20
1
Mongrel cluster log rotation best practices
OK, maybe not even best practices, but at least, tested practices.
>From my reading thus far, it is evident I shouldn''t use Rails to
handle mongrel log rotation. Fine, I''m sold on that. The advice I''m
seeing says that that one should use an external script to do this.
So my question is, what are people using? What''s working well?
Simple bash scripts or
2018 Jun 14
2
After logrotation Dovecot still writes to old log file
Hi there
This is weird. On my latest Ubuntu server Dovecot seems to write to
/var/log/dovecot.log.1 instead of a recently created /var/log/dovecot.log
Here my logrotate config for Dovecot:
/var/log/dovecot.log {
??????? su root syslog
??????? rotate 7
??????? missingok
??????? copytruncate
??????? create 666 root syslog
??????? sharedscripts
??????? postrotate
??????????? doveadm log
2012 Oct 01
2
Daily Access Log Files
Hello,
Is it possible to get daily access logs (creates a new ?access log file? every 24 hours)?
Best Regards,
Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/icecast/attachments/20121001/7b0f7ff4/attachment.htm
2008 Jun 09
2
iptables starting while disabled
I have a xen machine that has iptables turned off, and after a reboot it started behaving
badly during times when network IO rose to anything other than almost nil. Since I know
iptables makes xen unstable without some additional config and since its isolated I just
have is disabled. As a result it was the last place I looked and spent the better half of the
day chasing my tail.
Somehow it gets
2008 Oct 25
9
Cheapest 4 port FXO
I need to increase reliability at an office as SIP/Internet provider outages are causing some issues.
What would be the least expensive analogue card that people are using reliably?
Thanks!
jlc
2010 Jul 12
6
Project Management Solutions
I need to implement a solution and not having ever used anything but
MS Project I would be grateful for a reco on something good. The only
hope would be that its web based but I am open to anything!
Thanks!
jlc
2013 Apr 26
3
Problem with tinc.log and logrotate.
Hi everyone again.
I run tinc with the following command:
/usr/sbin/tincd -d1 --logfile=/var/log/tinc.log
That creates the file "/var/log/tinc.log" correctly and reports into it.
Well, because I want to have a log file by day, I have created a logrotate
file (/etc/logrotate.d/tinc) that contains the following lines:
-----------------------------------------
/var/log/tinc.log {
2008 Apr 07
7
MS Exchange Replacement
What is the closest open source mail server I can replace exchange with that provides the nearest equivalent in user experience?
Thanks!
jlc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20080406/5a469804/attachment-0001.html>
2012 Apr 27
2
[PATCH 1/2] sysprep: remove the logfiles configured by logrotate
Remove the logfiles configured by /etc/logrotate.d/*.
Omit the logfile of "samba" and "sssd" which we removed
them separately .
Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com>
---
sysprep/sysprep_operation_logfiles.ml | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/sysprep/sysprep_operation_logfiles.ml
2010 Feb 27
5
Python Script Issue
Hey Guys,
I am trying to get a python script running but I get the following error:
atexit.register(atexit_handler)
NameError: global name 'atexit' is not defined
A Google search doesn't really help me, except confirm that I don't know
anything about python:)
Anyone got any ideas?
Thanks,
jlc
2009 Jan 05
3
Log File Reviewing
I need to review a logfile with Sed and cut out all the lines that start with a certain word, problem
is this word begins after some amount of whitespace and unless I search for whitespace at the
beginning followed by "word" I may encounter "word" somewhere legitimately hence why
I don't just search for "word" only...
Anyone know how to make sed accomplish this?