Skip to main content
deleted 96 characters in body
Source Link
mkr
  • 346
  • 2
  • 8

IMHO "size 1k"I found an error in configuration is causing log rotation if they grow above specified size just before daily rotate.your provided script (missing endscript):

postrotate
    rm -rf /var/log/elasticsearch/*.log.$(date +%Y)*
endscript

I don't see "delaycompress" enabled as well -believe this might mean, that ALL files must be compressed. So it doesn't match "gravity-es-prod02.log.2015-12-01".

All above needs testing to verify if my thoughts are rightpart fails and somehow applies global settings for this log pattern.

IMHO "size 1k" in configuration is causing log rotation if they grow above specified size just before daily rotate.

I don't see "delaycompress" enabled as well - this might mean, that ALL files must be compressed. So it doesn't match "gravity-es-prod02.log.2015-12-01".

All above needs testing to verify if my thoughts are right.

I found an error in your provided script (missing endscript):

postrotate
    rm -rf /var/log/elasticsearch/*.log.$(date +%Y)*
endscript

I believe this part fails and somehow applies global settings for this log pattern.

Post Undeleted by mkr
Post Deleted by mkr
added 13 characters in body
Source Link
mkr
  • 346
  • 2
  • 8

IMHO "size 1k" in configuration is causing log rotation if they grow above specified size just before daily rotate.

I don't see "delaycompress" enabled as well - this might mean, that ALL files must be compressed. So it doesn't match "gravity-es-prod02.log.2015-12-01".

All above needs testing to verify if my thoughts are right.

IMHO "size 1k" in configuration is causing log rotation if they grow specified size just before daily.

I don't see "delaycompress" enabled as well - this might mean, that ALL files must be compressed. So it doesn't match "gravity-es-prod02.log.2015-12-01".

All above needs testing to verify if my thoughts are right.

IMHO "size 1k" in configuration is causing log rotation if they grow above specified size just before daily rotate.

I don't see "delaycompress" enabled as well - this might mean, that ALL files must be compressed. So it doesn't match "gravity-es-prod02.log.2015-12-01".

All above needs testing to verify if my thoughts are right.

Source Link
mkr
  • 346
  • 2
  • 8

IMHO "size 1k" in configuration is causing log rotation if they grow specified size just before daily.

I don't see "delaycompress" enabled as well - this might mean, that ALL files must be compressed. So it doesn't match "gravity-es-prod02.log.2015-12-01".

All above needs testing to verify if my thoughts are right.