Skip to content

Commit

Permalink
[foreman] Size limit production.log and ssl logs
Browse files Browse the repository at this point in the history
Adds a (high) default sizelimit to `production.log` and foreman
`*ssl.log` collections to avoid potentially causing out of space issues
on systems with large active logs.

Signed-off-by: Jake Hunsaker <[email protected]>
  • Loading branch information
TurboTurtle committed Nov 5, 2024
1 parent a3d5b1f commit f3a77fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sos/report/plugins/foreman.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,10 @@ def setup(self):
_host_f = self.exec_cmd('hostname -f')['output']
_host_f = _host_f.strip()

# Collect these completely everytime
self.add_copy_spec([
"/var/log/foreman/production.log",
f"/var/log/{self.apachepkg}*/foreman-ssl_*_ssl.log"
], sizelimit=0)
], sizelimit=500)

# Allow limiting these
self.add_copy_spec([
Expand Down

0 comments on commit f3a77fa

Please sign in to comment.