Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Wie Log-Files länger aufbewahren

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Wie Log-Files länger aufbewahren

    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rwaechter last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • Bluefox
        Bluefox last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • Dutchman
          Dutchman Developer Most Active Administrators last edited by

          Wie waere die idee log in SQL speichern?

          Sent from my iPhone using Tapatalk

          1 Reply Last reply Reply Quote 0
          • Bluefox
            Bluefox last edited by

            @Dutchman:

            Wie waere die idee log in SQL speichern?

            Sent from my iPhone using Tapatalk `
            Mach es 🙂

            1 Reply Last reply Reply Quote 0
            • R
              rwaechter last edited by

              Hallo Bluefox,

              super! Danke für die schnelle Antwort.

              1 Reply Last reply Reply Quote 0
              • Scrounger
                Scrounger Developer last edited by

                Ist es auch möglich, dass die vollen 7 Tage im WebGui unter Logs angezeigt werden?

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                Support us

                ioBroker
                Community Adapters
                Donate

                990
                Online

                31.8k
                Users

                80.0k
                Topics

                1.3m
                Posts

                4
                6
                1334
                Loading More Posts
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes
                Reply
                • Reply as topic
                Log in to reply
                Community
                Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                The ioBroker Community 2014-2023
                logo