Forum Discussion
Use of /var/log/monitors? Include to logrotate?
Hi, i´m getting the following error message on one of my clsuter nodes: 011d0004: Disk partition var_log has only 0% free Jul 15 12:01:03 lb1 emerg alertd[6804]: 01100048:0: Log disk usage still higher than 80% after logrotate and 24 times log deletion
I found that in /var/log/monitors there are logfiles for each of my configured nodes. The majority has a size of 450 MBytes. Can I just delete these files? Why aren´t they included in the logrotation?
Kind regards akqadm
9 Replies
- gsharri
Altostratus
Big-ip doesn't log monitor information by default. My guess is that you have some monitors assigned that have the debug setting enabled in their properties. This is only recommended if you are actively troubleshooting after which debug should be disabled. See this article for more log mgmt info: SOL13367
- akqadm_158140
Nimbostratus
Your guess was right. I don´t know why but every single host had debugging enabled.
I disabled all debugging and deleted the log files. Thank you for your help.
- 0_169865
Nimbostratus
So....I'm having the same problem, however, I'm not sure where to find the debugging settings nor how to clear up the disk space. Can I get some insight?
Thank you
- Ryannnnnnnnn
Altocumulus
Hi mate,
To enable/disable debugging (where the option is available) head to: Local Traffic -> Monitors -> Monitor_Name -> set Configuration to Advanced in the drop down box, then scroll to the bottom of the page, you will see the option to enable or disable debug.
For example, have a look at the PostgresSQL monitor type.
To clear the disk up, you can do it via SSH or SCP. Choose your method and navigate to /var/log. You should be able to see the monitor logs eg. POSTGRESQL__Common_HM_some.domain.com
- 0_169865
Nimbostratus
Thanks Ryan! I'll give it a try and let you know how it turns out. Thanks for your help!
- 0_169865
Nimbostratus
I looked through my monitors and cannot find one that has debug enabled. I also looked in the /var/log folder and there a lot of disk latency and disk statistics logs. Any ideas? The example logs are below.
disk_statistics.log.1.gz through disk_statistics.log.25.gz
and
disk_latency.log.1.gz through disk_latency.log.25.gz
I also see a lot of messages.gz and ltm.gz
- 0_169865
Nimbostratus
Also, is there a way to list all of the monitors and their configs through the cli? I am running the virtual edition 11.5.1.
- Ryannnnnnnnn
Altocumulus
you can list all your monitors with:
tmsh list ltm monitor - 0_169865
Nimbostratus
So here's what I found, in the /var/log/monitors directory, there was a file that had taken up all the space. It appeared to be a monitor for one of my nodes, I may have inadvertently enabled http monitoring on one of the backend nodes by mistake.
Anyway, Thank you all for your help!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
