Skip to content

Commit

Permalink
HYD-5417 Logrotate Compress scope if global for chroma-agent*.log
Browse files Browse the repository at this point in the history
Because the compress keyword is outside of the main stanza, it applies
to all log files that logrotate handles (logrotate just does an include of
everything in /etc/logrotate.d, it doesn't care what the files in
/etc/logrotate.d are named).

This causes all log files of affected systems to be compressed, regardless
of the site's intention to compress or not. We should only 
compress chroma-agent.log files, not all system logs.

 - Edit config file so compress setting is within the scope for 
   /var/log/chroma-agent*.log

Change-Id: Ibe882a099ccd616a08df409d58a03e7eb499f5f4
Signed-off-by: Abiola Saraki <[email protected]>
Reviewed-on: http://review.whamcloud.com/19508
Tested-by: Chroma Test User
Reviewed-by: Tom Nabarro <[email protected]>
Reviewed-by: Chris Gearing <[email protected]>
  • Loading branch information
Abiola Saraki authored and chrisgearing committed May 12, 2016
1 parent 49f62cb commit 86ea929
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logrotate.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
compress


/var/log/chroma-agent*.log {
missingok
rotate 10
nocreate
size=10M
compress
}

0 comments on commit 86ea929

Please sign in to comment.