\uD83E\uDD14 문제
...
Code Block |
---|
|
/opt/miniconda3/envs/saltenv/var/log/salt/master {
daily
rotate 7
missingok
rotate 5dateext
compress
compresscopytruncate
notifempty
}
/opt/miniconda3/envs/saltenv/var/log/salt/minion {
weeklydaily
rotate 7
missingok
dateext
rotate 5compress
compresscopytruncate
notifempty
}
/opt/miniconda3/envs/saltenv/var/log/salt/key {
daily
weeklyrotate 7
missingok
dateext
rotate 5compress
compresscopytruncate
notifempty
}
/opt/miniconda3/envs/saltenv/var/log/salt/api {
weekly daily
rotate 7
missingok
dateext
rotate 5compress
compresscopytruncate
notifempty
}
/opt/miniconda3/envs/saltenv/var/log/salt/cloud {
daily
weekly rotate 7
missingok
dateext
rotate 5compress
compresscopytruncate
notifempty
}
/opt/miniconda3/envs/saltenv/var/log/salt/ssh {
daily
rotate weekly7
missingok
dateext
rotate 5compress
compresscopytruncate
notifempty
} |
\uD83C\uDF31 해결책
...
이 경우, Salt logrotation이 원활히 진행되지 않는 경우가 있으며, 아래와 같이 강제 로테이션으로 실행하도록 변경합니다.(logrotate -f 옵션 추가)
Code Block |
---|
|
$ sudo vim /etc/cron.daily/logrotate
...
/usr/sbin/logrotate -f -s /var/lib/logrotate/logrotate.status /etc/logrotate.conf
... |
...
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@1fb56c |
---|
showSpace | false |
---|
sort | modified |
---|
showSpacetype | falsepage |
---|
reverse | true | type | page
---|
labels | kb-troubleshooting-article |
---|
cql | label = "kb-troubleshooting-article" and type = "page" and space = "CSHD" | labels | kb-troubleshooting-article |
---|
|