I recently changed my config from 'normal' to a docker config. On a Pi and still on buster (2022.2). Upgrade to bullseye and 2024.4 is planned.
Domoticz ran for years without crashing. Last night it crashed, the things I changed are the Domoticz version and the docker environment.
Before I logged everything to syslog on my Nas. In the docker container I didn't check if syslog was running, so when checking my logserver nothing was there. And I had to powercycle the Pi unfortunately. So nog logs.
Google so far did not learn me how to enable syslog for Domoticz in Docker.
Any tips?
EXTRA_CMD_ARG does not help so far.
Do I need to install syslog in the container?
Running on a pi 3b+.
Domoticz, docker and syslog Topic is solved
Moderator: leecollings
-
- Posts: 44
- Joined: Saturday 26 August 2017 20:13
- Target OS: Linux
- Domoticz version: 2023.2
- Contact:
Re: Domoticz, docker and syslog
You can enable syslog driver for your domoticz container (add the options to docker run command or configure it in docker compose file), see https://docs.docker.com/config/containe ... ng/syslog/
I use the following configuration in my docker compose file to send logs from Domoticz container to remote syslog server:
I use the following configuration in my docker compose file to send logs from Domoticz container to remote syslog server:
Code: Select all
services:
domoticz:
container_name: domoticz
...
logging:
driver: syslog
options:
syslog-address: tcp://<syslog-server-ip>:<port>
syslog-format: rfc5424
tag: domoticz
Domoticz 2023.2 on Odroid M1 and Armbian
MySensors (RFM69 Serial GW): bunch of DIY sensors/devices
Zwave (Z-Wave.me RaZberry board): Danfoss devices
Zigbee (Sonoff Dongle Plus): IKEA, Tesla devices
MySensors (RFM69 Serial GW): bunch of DIY sensors/devices
Zwave (Z-Wave.me RaZberry board): Danfoss devices
Zigbee (Sonoff Dongle Plus): IKEA, Tesla devices
-
- Posts: 625
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Geleen
- Contact:
Re: Domoticz, docker and syslog
Thank, the solution I was looking for.
Who is online
Users browsing this forum: No registered users and 0 guests