search for: copytrunc

Displaying 20 results from an estimated 32 matches for "copytrunc".

Did you mean: copy_func
2011 Oct 19
2
Silly logrotate question
...r 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 app.2011-10-<X>.log files with a 0 file size. If I turn off copytruncate, the current days log file will be removed everyday at 4am. How can I satisfy both the need to remove yesterday's log file while keeping the current day? Here...
2008 Nov 27
0
OT: Testing copytruncate
...k script to create values in a file at high rate. #!/usr/bin/perl open FILE, ">testdata" or die $!; for (my $i = 1; $i <= 10000000; $i++){ print FILE "$i\n"; # sleep 1; } close FILE and a logrotate.conf file that rotates the file /home/blah/testfileopen/testdata { copytruncate daily rotate 2 size=10M } It works but the copy truncate messes up the file the application is writing to... or it might be my simplistic perl script. I can't to a head on the testdata file. A hexdump reveals some strange errors which I believe is the cause of the problems, why...
2011 Jul 18
0
SQUID Logrotate
...blem, 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 { weekly rotate 5 copytruncate compress notifempty missingok } /var/log/squid/store.log { weekly rotate 5 copytruncate compress notifempty missingok # This script asks squid to r...
2018 May 14
1
Logrotate
...md/system/samba.service.d/reload.conf > [Service] > ExecReload=/usr/bin/kill -HUP $MAINPID > > after create folder and file: systemctl daemon-reload > > stop/sart would be wrong anyways - that's what RESTART is for and proper distributions ship logrotate configs by default copytruncate Truncate the original log file in place after creating a copy, instead of moving the old log file and optionally creating a new one. It can be used when some program cannot be told to close its logfile and thus might continue writing (appending) to the previous log file forever. Note that there...
2016 Mar 06
2
logrotate script error
...9;100M': No such file size: '100M': No such file size: '100M': No such file size: '100M': No such file size: '100M': No such file And this is the logstash rotate script: #cat /etc/logrotate.d/logstash /var/log/logstash/* { daily rotate 7 copytruncate compress delaycompress missingok notifempty postrotate size 100M /bin/kill -HUP `cat /var/run/logstash.pid 2>/dev/null` 2> /dev/null || true endscript } I can't find the error there. Can I have a suggestion as to what'...
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 script is going wrong, and why log files for ES are growing so incr...
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 reopen ??????? endscript } Doveadm should reopen it but no, still writes to old log file. Not sure, maybe it's someone else, not dovecot, writing to the log file? And here the versions: #...
2012 Oct 02
0
Icecast Digest, Vol 101, Issue 2
...;ampliman at live.com> > Cc: icecast at xiph.org > Message-ID: > <CALJtzxBw_t= > TbL8dVEGFLCFwBetiNw78A2XRvqX-4Bc4KQwqKQ at mail.gmail.com> > Content-Type: text/plain; charset="windows-1252" > > Rick, > > If you use Linux, can use logrotate with copytruncate to do this jobs... > > Take a look to this howto is for other mediaServer but the logrotate > configuration is exactly the same we use into Icecast too.. > > http://www.wmconsulting.info/working-with-wowza-logs/ > > Or if need this information into a DB, can take a look to t...
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
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
2012 Oct 01
1
Daily Access Log Files
...ystem? Thanks Mike From: icecast-bounces at xiph.org [mailto:icecast-bounces at xiph.org] On Behalf Of Alejandro Sent: Monday, October 01, 2012 5:23 PM To: Rick Ricari Cc: icecast at xiph.org Subject: Re: [Icecast] Daily Access Log Files Rick, If you use Linux, can use logrotate with copytruncate to do this jobs... Take a look to this howto is for other mediaServer but the logrotate configuration is exactly the same we use into Icecast too.. http://www.wmconsulting.info/working-with-wowza-logs/ Or if need this information into a DB, can take a look to the beta release of our...
2014 Apr 09
3
Logrotate errors
...bnormally 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 info for /nsm/moloch/logs/viewer.log Handling 1 logs rotating pattern: /srv/www2/logs/viewer.log 524288 bytes (7 rotations) empt...
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
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
2000 Apr 03
0
2.0.7pre3: misc issues
...ing logs. Even if the release notes of 2.0.6 say the issue is solved, this is not the case for my systems: connections that are already active keep logging to the old logs; logrotate rotates/zips the logs and samba stops logging completely till restart. I think you could put a note about the "copytruncate" directive as a comment in the samba.log (logrotate config file) file, so that if someone has problems he can quickly see one possible solution. The "copytruncate" option didn't exist in old logrotate versions. === 5) wins-hook fires for group names <00> and <1E>...
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 {
2000 Mar 18
3
Samba 2.0.7pre2 snapshot released.
Hi all, I just released Samba 2.0.7pre2, available from : ftp://samba.org/pub/samba/alpha/samba-2.0.7pre2.tar.gz This is the second snapshot of the code that should become the official Samba 2.0.7 and is feature complete (ie. I'm only going to accept bug fixes, not more features). This is *not* production code, but should work well as a file and print server, and contains fixes for all
2015 Feb 26
0
Managing virt-manager's ever growing log file
...28.el6. I see "virt-manager startup" entries going all the way back to the first time I started it. So, it looks like some arrangement with logrotate is in order. Does a running virt-manager have any facility for telling it to close and reopen its log file, or do I have to use the "copytruncate" function of logrotate? -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it.
2016 Mar 06
0
Re: logrotate script error
...such file > size: '100M': No such file > size: '100M': No such file > size: '100M': No such file > > And this is the logstash rotate script: > > #cat /etc/logrotate.d/logstash > /var/log/logstash/* { > daily > rotate 7 > copytruncate > compress > delaycompress > missingok > notifempty > postrotate > size 100M > /bin/kill -HUP `cat /var/run/logstash.pid 2>/dev/null` 2> /dev/null > || true > endscript > } > > I can't find the...
2016 Jul 28
0
ElasticSearch Logrotate not working
On 07/28/2016 07:40 AM, Tim Dunphy wrote: > 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 script is going wrong,...