Solved

Can I safely delete centreon-broker logs ?

  • 16 December 2022
  • 2 replies
  • 580 views

Userlevel 1
Badge +6

Hello,

My centreon server disk is nearly full (<2GB remaining).

I did add 10G last year but today I’d like to see if I can free some space by deleting stuff that is not needed anymore.

 

Disk is 74GB, /var takes 70GB, /var/log takes 11 and /var/lib 59

 

I tought I could delete some old logs that maybe aren’t useful to keep.

 

So is that safe to delete that kind of logs ? :

 /var/log/centreon-broker/central-broker-master.log-20220515.gz

I have around 30 of them they’re arond 120-160MB

 

Thx for your answers, have a nice day :)

icon

Best answer by ponchoh 16 December 2022, 22:27

View original

2 replies

Userlevel 4
Badge +13

👋

@Benjamin_b there are some configurations under “Configuration  >  Pollers  >  Broker configuration“ | “Log options” section ( we can skip this )

 and

“Administration  >  Parameters  >  Options” | “Retention durations”

 

 

The retention looks like something that will help us, you can adjust as needed and delete as needed for the logs as long as it helps you. You can check which one is your oldest log.

Finally you can adjust your logrotate for this under “/etc/logrotate.d/cbd”

Hope this was informative.

🛷

Userlevel 1
Badge +6

Hi @ponchoh 

Here are my rentetions settings

I already reduced some duration to save space, but as it didnt help i start looking for stuff i could manually delete.

 

I looked closer to those broker logs and once unzipped they’re 2gb! One of my check had a (very) verbose return (100lines). I removed that service (it was a minor one), hope it will help

Reply