Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

\uD83E\uDD14 문제

...

Code Block
languagebash
/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 {
    weekly daily
    rotate 7
    missingok
    dateext
   rotate 5compress
    compresscopytruncate
    notifempty
}

/opt/miniconda3/envs/saltenv/var/log/salt/api {
    daily
    rotate weekly7
    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 {
    weeklydaily
    rotate 7
    missingok
    dateext
 rotate   5compress
    compresscopytruncate
    notifempty
}

\uD83C\uDF31 해결책

...

이 경우, Salt logrotation이 원활히 진행되지 않는 경우가 있으며, 아래와 같이 강제 로테이션으로 실행하도록 변경합니다.(logrotate -f 옵션 추가)

Code Block
languagebash
$ 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)
page
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@1fb56c
showSpacefalse
sortmodified
showSpacetypefalsepage
reversetruetype
labelskb-troubleshooting-article
cqllabel = "kb-troubleshooting-article" and type = "page" and space = "CSHD"labelskb-troubleshooting-article