Displaying 20 results from an estimated 2000 matches similar to: "Tinc Log rotation fails"
2017 Nov 16
2
Log rotation and combining...
I have recently noticed that my dovecot-deliver.log is huge and wanted to start rotating it. So a couple of questions:
1. Can the dovecot-deliver.log be combined with the maillog, that gets rotated weekly? If it can be done, is it advisable?
Since the inception of this particular server, the log file has been located in the /home/vmail directory. Is there a reason it shouldn?t be located in
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 17
2
Log rotation and combining...
That doesn?t seem to work either. Where do I find logs for log rotation to see the reason it failed?
Ethon
> On Nov 16, 2017, at 7:53 PM, Bill Shirley <bill at KnoxvilleChristian.org <mailto:bill at KnoxvilleChristian.org>> wrote:
>
> I believe you need a 'create' statement to set the permissions. Here
> is an example for mariadb:
>
2020 May 25
1
log.samba missing rotation
Can you try this and adjust the path's in it.
#/etc/logrotate.d/samba
/var/log/samba/log.smbd {
weekly
missingok
rotate 7
postrotate
[ ! -x /usr/bin/smbcontrol ] || [ ! -f /run/samba/smbd.pid ] || /usr/bin/smbcontrol smbd reload-config
endscript
compress
delaycompress
notifempty
}
/var/log/samba/log.nmbd {
2017 Nov 17
2
Log rotation and combining...
So, the question is, why can I rotate the log manually, but cron returns a permission error? Do I need to tell cron to run it as sudo or something like that?
Ethon
> On Nov 17, 2017, at 2:29 AM, Tom Hendrikx <tom at whyscream.net <mailto:tom at whyscream.net>> wrote:
>
> Hi,
>
>
> Your crontab should normally mail you error output. But you can also run
> the
2020 May 22
3
log.samba missing rotation
I know about this param, I configured it and log.smbd, log.nmbd and others are rotated, log.samba is not.
----- Original Message -----
> From: "samba" <samba at lists.samba.org>
> To: "Lorenzo Milesi" <maxxer at yetopen.it>, "samba" <samba at lists.samba.org>
> Sent: Thursday, May 21, 2020 7:29:04 PM
> Subject: Re: [Samba] log.samba
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:
2009 Dec 28
3
Log rotation?
? Hi people.
? I had read dovecot logging info, they say something about using log
rotation to help us rotate our log, with this setup:
# dovecot SIGUSR1: Re-opens the log files.
/var/log/dovecot*.log {
missingok
notifempty
delaycompress
sharedscripts
postrotate
/bin/kill -USR1 `cat /var/run/dovecot/master.pid 2>/dev/null` 2>
/dev/null || true
endscript
}
Well, my
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
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 {
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
2018 Jan 30
2
Samba 4.7.4 + bind9 DLZ /backend/ dropping delegated domain
Hai,
Check the content of :
/etc/logrotate.d/named
If you see
postrotate
/etc/init.d/smbd reload > /dev/null
endscript
Change that to
postrotate
if [ -d /run/systemd/system ]; then; systemctl -q is-active named && systemctl reload named; else; /etc/init.d/named reload ; fi';
endscript
Its something like that, so who pointing.. That does not matter, because this is OS
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
2019 Mar 13
5
read permission on rotated logs
When logs (e.g. /var/log/maillog) are rotated (e.g. to
/var/log/maillog-YYYYMDD) is there a way via systemd or whatever to
assign read permission to a specific group?
Right now, for example -
ls -l maillog*
-rw------- 1 root root 3105240 Mar 13 22:04 maillog
-rw------- 1 root root 1079031 Feb 24 04:39 maillog-20190224
-rw------- 1 root root 7237640 Mar 1 12:59 maillog-20190228
-rw------- 1
2005 Jun 30
5
Logrotate
I created some scripts to logrotate. I am having a problem. After I do
it, I am sending kill -HUP to the process
its not using the newly created messages file again. Could someone help
me out with how I can rotate asterisk's
log's without killing the process?
..o-------------------------------------------------------o.
Brian Fertig
NOC/Network Engineer
Planet Telecom, Inc.
Tampa, FL
1999 Jul 10
5
2.0.4b: logrotate problems with rh60
The 2.04b rpm for rh60 ships with and installs a config file for logrotate
(the samba.log file in the packaging/RedHat section).
=====
/var/log/samba/log.nmb {
postrotate
/usr/bin/killall -HUP nmbd
endrotate
}
/var/log/samba/log.smb {
postrotate
/usr/bin/killall -HUP smbd
endrotate
}
=====
1)
I think that the use of "endrotate" is wrong.
There is no
2018 Jan 29
3
Samba 4.7.4 + bind9 DLZ /backend/ dropping delegated domain
Just a wild guess, but I and others have been having problems with
samba_dlz, because of named "reload."
Try to see if
systemctl reload named
and
systemctl restart named
break and fix the server respectively. (if your're not using systemd, try
"serivice named reload", "service named restart instead")
If you have a /etc/logrotate.d/named file containing
2017 May 12
3
samba-ad restart fails occasionally
Hi,
We are running sernet samba, and on one particular DC (debian 7.11,
samba 4.5.6), when logrotate is ready rotating, "sernet-samba-ad
restart" fails with:
> Shutting down SAMBA AD services : ...trying once more ... (warning).
> ...trying once more ... (warning).
.....
> ...trying once more ... (warning).
> Error: /usr/sbin/samba still running with PID=14755 from
2017 Mar 19
2
Permission denied when logrotating dovecot.log
Hello guys
Having headaches here how to make logrotation for dovecot log files
work. Having permission issues:
michael.heuberger at xxx /e/l/daily ??? sudo logrotate -fv
dovecot.daily
?
reading config file dovecot.daily
Handling 1 logs
rotating
2000 Jan 18
1
does 2.0.6 fix kill -HUP logrotation?
2.0.5 (on linux) has a small annoyance in that, when the log files get
rotated, kill -HUP won't point the daemons to the new log files. They keeps
logging to the old ones until they are stopped/started. Does 2.0.6 fix this?