NEWS
Wie Log-Files länger aufbewahren
-
Hallo an alle,
wie kann ich die Log-Files unter opt/iobroker/log länger als eine Woche aufbewahren bzw. nicht rollieren lassen?
Danke für eine Antwort.
-
In der Datei /opt/iobroker/iobroker-data/iobroker.json
gibt es Einstellungen für log:
"log": { "level": "info", "maxDays": 7, "noStdout": true, "transport": { "file1": { "type": "file", "enabled": true, "filename": "log/iobroker", "fileext": ".log", "maxsize": null, "maxFiles": null }, "syslog1": { "type": "syslog", "enabled": false, "host": "localhost", "host_comment": "The host running syslogd, defaults to localhost.", "port_comment": "The port on the host that syslog is running on, defaults to syslogd's default port(514/UDP).", "protocol": "udp4", "protocol_comment": "The network protocol to log over (e.g. tcp4, udp4, unix, unix-connect, etc).", "path_comment": "The path to the syslog dgram socket (i.e. /dev/log or /var/run/syslog for OS X).", "facility_comment": "Syslog facility to use (Default: local0).", "localhost": "iobroker", "localhost_comment": "Host to indicate that log messages are coming from (Default: localhost).", "sysLogType_comment": "The type of the syslog protocol to use (Default: BSD).", "app_name_comment": "The name of the application (Default: process.title).", "eol_comment": "The end of line character to be added to the end of the message (Default: Message without modifications)." } } },
"maxDays": 7,
Ist das was du suchst.
Die Änderungen sind nach restart wirksam.
-
Wie waere die idee log in SQL speichern?
Sent from my iPhone using Tapatalk
-
Wie waere die idee log in SQL speichern?
Sent from my iPhone using Tapatalk `
Mach es -
Hallo Bluefox,
super! Danke für die schnelle Antwort.
-
Ist es auch möglich, dass die vollen 7 Tage im WebGui unter Logs angezeigt werden?