I have a P1 Smart Meter connected to my Domoticz. Works great, the newest smart meters even send their info every second. But that results in a log line every second, which is not needed (used DB space, keeps HDDs out of sleep, etc.) and pushing back real log entries.
Is there a way to disable logging for 1 device?
Disable log for 1 device
Moderator: leecollings
- solidum90
- Posts: 37
- Joined: Tuesday 01 August 2017 20:59
- Target OS: NAS (Synology & others)
- Domoticz version: Debian
- Location: Milan
- Contact:
Re: Disable log for 1 device
I'm interested too..!
- emme
- Posts: 909
- Joined: Monday 27 June 2016 11:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: Milano, Italy
- Contact:
Re: Disable log for 1 device
+1
would be nice the possibility to limit to n-days also
would be nice the possibility to limit to n-days also

The most dangerous phrase in any language is:
"We always done this way"
"We always done this way"
- Louk
- Posts: 17
- Joined: Sunday 14 July 2019 13:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2 β
- Location: Alkmaar, The Netherlands
- Contact:
Re: Disable log for 1 device
Hi,
Since some weeks I'm using Domoticz on my Synology NAS as alternative for a bricked VERA (by connecting a powered USB hub, but that's a complete different story).
After a lot of struggling while configuring the setup, that includes an intelligent energy meter (P1), it run's quite smoothly. Except for one nasty issue: The Domoticz server stops or hangs at least once a week. After some investigation, I found that there was a HUGE log file, mostly filled with useless messages about receiving data from the P1 interface.
Now I want to disable this (useless) logging, for this device, all devices, or even all logging at once. I understand from this forum that the first option is not supported. I found a configuration file (/usr/local/domoticz/var/scripts/domoticz.conf. This file contains lines (commented out) to enable logging, selecting the log file, and options to log. However changing this file does not seem to make any difference.
I also found (guided by this forum
) the start script for the Domoticz service that contains the following line:
Now I wonder what happens when I remove the log file spec, or even better, if I could add an option to include the config, so I can reduce the log file to error messages only?
PS.: I know this is a reply on an older post, but it's about the same issue (too much logging, caused by the P1 interface) and there is still no solution for this.
Since some weeks I'm using Domoticz on my Synology NAS as alternative for a bricked VERA (by connecting a powered USB hub, but that's a complete different story).
After a lot of struggling while configuring the setup, that includes an intelligent energy meter (P1), it run's quite smoothly. Except for one nasty issue: The Domoticz server stops or hangs at least once a week. After some investigation, I found that there was a HUGE log file, mostly filled with useless messages about receiving data from the P1 interface.
Now I want to disable this (useless) logging, for this device, all devices, or even all logging at once. I understand from this forum that the first option is not supported. I found a configuration file (/usr/local/domoticz/var/scripts/domoticz.conf. This file contains lines (commented out) to enable logging, selecting the log file, and options to log. However changing this file does not seem to make any difference.
I also found (guided by this forum

Code: Select all
su ${USER} -c "${DOMOTICZ} -www ${PORT} -wwwroot ${WWWROOT} -sslwww ${RSSLPORT} -sslcert ${RSSLCERT} -approot ${INSTALL_DIR}/ -userdata ${INSTALL_DIR}/var/ -dbase ${DB_FILE} -log ${LOGFILE} & echo \$! > ${PID_FILE} "
PS.: I know this is a reply on an older post, but it's about the same issue (too much logging, caused by the P1 interface) and there is still no solution for this.
Have fun,
Louk
Louk
- gizmocuz
- Posts: 2541
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Disable log for 1 device
Why do you need to store a log file ?
This could only be useful while debugging, after just do not do this
There are command line options to specify to only log warnings/errors
This could only be useful while debugging, after just do not do this
There are command line options to specify to only log warnings/errors
Quality outlives Quantity!
- Louk
- Posts: 17
- Joined: Sunday 14 July 2019 13:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2 β
- Location: Alkmaar, The Netherlands
- Contact:
Re: Disable log for 1 device
Normally I don't need log files at all, but because Domoticz crashes or just stops every 5 to 7 days, I want to see what is going on.
Where do I find these command line options to customize the logging options? Or how do I force Domoticz to use this option file (which isn't there for nothing, I suppose)?
Where do I find these command line options to customize the logging options? Or how do I force Domoticz to use this option file (which isn't there for nothing, I suppose)?
Have fun,
Louk
Louk
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Disable log for 1 device
Please have a look at this crosspost

Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Who is online
Users browsing this forum: No registered users and 1 guest