Displaying 20 results from an estimated 42 matches for "notifempty".
2011 Jul 18
0
SQUID Logrotate
...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 rotate its logs on its own.
# Re...
2020 May 25
1
log.samba missing rotation
...tc/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 {
weekly
missingok
rotate 7
postrotate
[ ! -x /usr/bin/smbcontrol ] || [ ! -f /run/samba/nmbd.pid ] || /usr/bin/smbcontrol nmbd reload-config
endscript
compress
delaycompress
notifempty
}
/va...
2016 Mar 06
2
logrotate script error
...39;: 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's wrong
and how to correct it?
Thanks,
Tim
--
GPG me!!
gpg --keyserver poo...
2018 May 14
3
Logrotate
...rsion:
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 logrotate is executed, log is rotate but after ,
don't log messages anymore,...
2017 Nov 17
2
Log rotation and combining...
...tement to set the permissions. Here
> is an example for mariadb:
> /var/log/mariadb/general.log
> /var/log/mariadb/slow_query.log
> /var/log/mariadb/error.log
> /var/log/mariadb/mariadb.log {
> create 640 mysql mysql
> daily
> minsize 30M
> notifempty
> rotate 3
> missingok
> compress
> sharedscripts
> postrotate
> # # just if mysqld is really running
> if test -x /usr/bin/mysqladmin && \
> /usr/bin/mysqladmin ping &>/dev/...
2007 Apr 13
1
Logrotate error?
...t after looking at the file in question, it sure appears
to me that the "y" is the result of a "typo" on the
part of logrotate -- and who ever heard of machines making typos!
root at beauregard logrotate.d]# cat sa-update
/var/log/sa-update.log {
monthly
notifempty
missingok
}
[root at beau
Perhaps the Menehune, speaking Jabberwocky? :-)
At any rate, there are 16 files in /etc/logrotate.d containing
a "notifempty" line and it hiccuped only the one time.
2017 Nov 16
2
Log rotation and combining...
...en located in the /home/vmail directory. Is there a reason it shouldn?t be located in the /var/log directory with the maillog?
2. Separate from above, if I create a new logrotate script example as follows:
# dovecot SIGUSR1: Re-opens the log files.
/home/vmail/dovecot-deliver.log {
missingok
notifempty
delaycompress
sharedscripts
postrotate
/bin/kill -USR1 `cat /var/run/dovecot/master.pid 2>/dev/null` 2> /dev/null || true
endscript
}
I get the following error only when cron tries to run it:
/etc/cron.daily/logrotate:
error: stat of /home/vmail/dovecot-deliver.log failed: Permi...
2018 May 14
1
Logrotate
...:
> 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 &> /dev/null
>> #endscript
>> }
>>
>> --
>>
>>
>> My proble...
2011 Oct 19
2
Silly logrotate question
...e 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 is the logrotate file:
/var/log/app/*.log {
daily
rotate 10
compress
missingok
notifempty
create 0644 user user
}
I added notifempty to keep the old empty log files from being compressed...
Thanks,
John
John Kennedy
2017 Nov 17
2
Log rotation and combining...
...ariadb:
>>> /var/log/mariadb/general.log
>>> /var/log/mariadb/slow_query.log
>>> /var/log/mariadb/error.log
>>> /var/log/mariadb/mariadb.log {
>>> create 640 mysql mysql
>>> daily
>>> minsize 30M
>>> notifempty
>>> rotate 3
>>> missingok
>>> compress
>>> sharedscripts
>>> postrotate
>>> # # just if mysqld is really running
>>> if test -x /usr/bin/mysqladmin && \
>>>...
2010 Jan 15
4
Logrotate in CentOS 5.4 more brutal (to httpd at least) than in 5.3?
...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
/sbin/service httpd reload > /dev/null 2>/dev/null || true
endscript
}
CentOS 5.4:
/var/log/httpd/*log {
missingok
notifempty
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null...
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
2023 Nov 28
1
missing file in logrotate config
...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 28.03.23 um 10:40 schrieb Rowland Penny via samba:
>>
>>
>> On 28/03/2023 08:40, Arnaud FLORENT via samba wrote:
>>> Hello
>>>
>>>
>>> i am running samba 4.16 as AD-DC co...
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 incredibly big? I would think that
having that logrotate script in...
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
2016 Mar 06
0
Re: logrotate script error
...; 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's wrong
> and how to correct it?
Multip...
2017 Nov 17
0
Log rotation and combining...
I believe you need a 'create' statement to set the permissions. Here
is an example for mariadb:
/var/log/mariadb/general.log
/var/log/mariadb/slow_query.log
/var/log/mariadb/error.log
/var/log/mariadb/mariadb.log {
??????? create 640 mysql mysql
??????? daily
??????? minsize 30M
??????? notifempty
??????? rotate 3
??????? missingok
??????? compress
??????? sharedscripts
??????? postrotate
#?????? # just if mysqld is really running
??????????????? if test -x /usr/bin/mysqladmin && \
??????????????????????? /usr/bin/mysqladmin ping &>/dev/null
??????????????? then
?????...
2017 Nov 17
0
Log rotation and combining...
...>> is an example for mariadb:
>> /var/log/mariadb/general.log
>> /var/log/mariadb/slow_query.log
>> /var/log/mariadb/error.log
>> /var/log/mariadb/mariadb.log {
>> create 640 mysql mysql
>> daily
>> minsize 30M
>> notifempty
>> rotate 3
>> missingok
>> compress
>> sharedscripts
>> postrotate
>> # # just if mysqld is really running
>> if test -x /usr/bin/mysqladmin && \
>> /usr/bi...
2023 Dec 06
1
missing file in logrotate config
...>
> /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
> }
I have:
/var/log/samba/log.rpcd_* {
weekly
missingok
rotate 7
postrotate
/usr/bin/killall -HUP /usr/sbin/smbd
endscript
compress
delaycompress
notifempty
}
and get "ls" like:
log.rpcd_spoolss
log.rpcd_spoolss.1
log.rpcd_spoolss.1.1
log.rpcd_spoolss.1....
2017 Dec 08
0
glusterdump filling up /var on fuse clients
...ot what would be the best way to suppress
this?
I want rotate but if I can I would like to live without managing the space
issues.
[root at gui logrotate.d]# cat glusterfs
# Rotate client logs
/var/log/glusterfs/*.log {
sharedscripts
weekly
rotate 52
missingok
compress
delaycompress
notifempty
postrotate
/usr/bin/killall -HUP glusterfs > /dev/null 2>&1 || true
/usr/bin/killall -HUP glusterd > /dev/null 2>&1 || true
endscript
}
# Rotate server logs
/var/log/glusterfs/bricks/*.log {
sharedscripts
weekly
rotate 52
missingok
compress
delaycompress
no...