Skip to main content
3 of 3
deleted 96 characters in body
mkr
  • 346
  • 2
  • 8

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.

mkr
  • 346
  • 2
  • 8