forked from noobaa/noobaa-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NSFS | logrotate is not performing for noobaa logs
Signed-off-by: naveenpaul1 <napaul@redhat.com>
- Loading branch information
1 parent
105625c
commit c0d0167
Showing
6 changed files
with
31 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,48 @@ | ||
/var/log/noobaa.log | ||
{ | ||
daily | ||
size 100M | ||
maxsize 100M | ||
minsize 50M | ||
start 1 | ||
missingok | ||
rotate 100 | ||
compress | ||
create 644 root root | ||
sharedscripts | ||
postrotate | ||
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true | ||
/bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true | ||
postrotate | ||
killall -HUP rsyslogd || true | ||
killall -HUP syslogd || true | ||
endscript | ||
} | ||
|
||
/var/log/client_noobaa.log | ||
/var/log/noobaa_events.log | ||
{ | ||
daily | ||
size 100M | ||
maxsize 100M | ||
minsize 10M | ||
start 1 | ||
missingok | ||
rotate 10 | ||
rotate 100 | ||
compress | ||
create 644 root root | ||
sharedscripts | ||
postrotate | ||
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true | ||
/bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true | ||
killall -HUP rsyslogd || true | ||
killall -HUP syslogd || true | ||
endscript | ||
} | ||
|
||
/var/log/noobaa_events.log | ||
/var/log/client_noobaa.log | ||
{ | ||
monthly | ||
size 10M | ||
size 100M | ||
start 1 | ||
missingok | ||
rotate 10 | ||
compress | ||
create 644 root root | ||
sharedscripts | ||
postrotate | ||
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true | ||
/bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true | ||
killall -HUP rsyslogd || true | ||
killall -HUP syslogd || true | ||
endscript | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
/usr/sbin/logrotate -v /etc/logrotate.d/noobaa/logrotate_noobaa.conf || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters