Quote from: cookiemonster on December 04, 2024, 11:42:56 PM
For AdGH logging specifically there's another way. I can't really remember how long ago I did this modification but a few AdGH versions ago they introduced some additional logging capabilities by config. I update AdGH from time to time using the UI. The installation is from mimugmail's repo.
Please if you do it, check you have a version that has this capability and take notice of the schema changes. Make a backup of the config file: /usr/local/AdGuardHome/AdGuardHome.yaml before any changes.
I am on Version: v0.107.54 of AdGH.
On my config I have added/changed the following settings in the log section:Code Selectlog:
enabled: true
file: /var/log/AdGuardHome/AdGuardHome.log
max_backups: 30
max_size: 10
max_age: 31
compress: false
local_time: false
verbose: false
This is very recently, before I had:Code Selectlog:
enabled: true
file: /var/log/AdGuardHome/AdGuardHome.log
max_backups: 3
max_size: 100
max_age: 3
compress: false
local_time: false
verbose: false
but I realised I wanted to rotate earlier and not have 100 MB files. I have just recently made the change so will need to keep an eye on successful rotation.
So, take backup, make your desired changes, restart AdGH from : System: Diagnostics: Services. Read the new log file to see it starting. Keep an eye to make sure the log files are growing and rotating as expected.
More info on settings https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration
Awesome, thank you! That should help a ton with troubleshooting. I've got it logging now and will monitor.