Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Iobroker Logging zu syslog

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.9k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.3k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.5k

Iobroker Logging zu syslog

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
26 Beiträge 11 Kommentatoren 6.4k Aufrufe 4 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • BluefoxB Offline
    BluefoxB Offline
    Bluefox
    schrieb am zuletzt editiert von
    #4

    @apollon77:

    Was spricht dagegen es offiziell mit zu installieren mit den dependecies vom js-controller?! `
    Ich glaube nichts. Damals, dachte ich, dass da Fehlermeldungen wegen node-gyp kommen werden , aber jetzt sowieso letsencrypt dabei ist und produziert jede Menge Fehler.

    1 Antwort Letzte Antwort
    0
    • apollon77A Offline
      apollon77A Offline
      apollon77
      schrieb am zuletzt editiert von
      #5

      ;)

      Dann wäre offizieller support schon cool denke ich

      Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

      • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
      • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
      1 Antwort Letzte Antwort
      0
      • C Offline
        C Offline
        cybertron
        schrieb am zuletzt editiert von
        #6

        Koennte mal jemand den Bereich aus der iobroker.json als ausgefülltes Beispiel posten?

        Ich wuerde das Ganze gern auf einen im Netz ohnehin vorhanden syslog-Server schicken.

        Danke & Gruss

        Silvio

        1 Antwort Letzte Antwort
        0
        • apollon77A Offline
          apollon77A Offline
          apollon77
          schrieb am zuletzt editiert von
          #7

          Siehe https://github.com/ioBroker/ioBroker.js … -dist.json

          Ist an sich alles drin.

          Musst nur log -> transport -> syslog1 das "enabled": true machen und unter "Host" den Server eintragen wenn nicht localhost

          Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

          • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
          • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
          1 Antwort Letzte Antwort
          0
          • sissiwupS Offline
            sissiwupS Offline
            sissiwup
            schrieb am zuletzt editiert von
            #8

            Hallo,

            bei mir passiert da nix. Hat das schon wer zum laufen bekommen?

            Habe die CCU2 und div. andere Logs auf meinen Log-Server liegen,

            ioBroker will aber nicht.

             "log": {
                "level": "info",
                "maxDays": 30,
                "transport": {
                  "file1": {
                    "type": "file",
                    "enabled": true,
                    "filename": "log/iobroker",
                    "fileext": ".log",
                    "maxsize": null,
                    "maxFiles": null
                  },
                  "syslog1": {
                            "type":                 "syslog",
                            "enabled":              true,
            
                            "host":                 "192.168.1.13",
                            "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/UD
            P).",
            
                            "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)."
                        }
                }
            
            

            MfG

            Sissi

            –-----------------------------------------

            1 CCU3 1 CCU2-Gateway 1 LanGateway 1 Pi-Gateway 1 I7 für ioBroker/MySQL


            1 Antwort Letzte Antwort
            0
            • sissiwupS Offline
              sissiwupS Offline
              sissiwup
              schrieb am zuletzt editiert von
              #9

              da fehlte noch was, jetzt gehts bei mir:

                    "syslog1": {
                              "type":                 "syslog",
                              "enabled":              true,
              
                              "host":                 "192.168.1.13",
                              "host_comment":         "The host running syslogd, defaults to localhost.",
                              "port":                 "514",
                              "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":                 "",
                              "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)."
                          }
              
              

              MfG

              Sissi

              –-----------------------------------------

              1 CCU3 1 CCU2-Gateway 1 LanGateway 1 Pi-Gateway 1 I7 für ioBroker/MySQL


              1 Antwort Letzte Antwort
              0
              • sissiwupS Offline
                sissiwupS Offline
                sissiwup
                schrieb am zuletzt editiert von
                #10
                  "syslog1": {
                                "type":                 "syslog",
                                "enabled":              true,
                
                                "host":                 "192.168.1.13",
                                "host_comment":         "The host running syslogd, defaults to localhost.",
                                "port":                 "514",
                                "port_comment":         "The port on the host that syslog is running on, defaults to syslogd's default port(514/UDP).",
                                "pid":                  "0",
                                "protocol":             "udp4",
                                "protocol_comment":     "The network protocol to log over (e.g. tcp4, udp4, unix, unix-connect, etc).",
                                "path":                 "",
                                "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)."
                            }
                
                

                Mit "pid" = 0 erreicht man, das die Prozess-ID nicht mit im Namen geloggt wird, das stört oft beim Filtern.

                MfG

                Sissi

                –-----------------------------------------

                1 CCU3 1 CCU2-Gateway 1 LanGateway 1 Pi-Gateway 1 I7 für ioBroker/MySQL


                1 Antwort Letzte Antwort
                0
                • sissiwupS Offline
                  sissiwupS Offline
                  sissiwup
                  schrieb am zuletzt editiert von
                  #11

                  Kann es sein dass

                  process.title nur vom js-controller verwendet wird und nicht von den Adaptern?

                  Wie kann ich adapter.appName oder ähnliches übergeben?

                  MfG

                  Sissi

                  –-----------------------------------------

                  1 CCU3 1 CCU2-Gateway 1 LanGateway 1 Pi-Gateway 1 I7 für ioBroker/MySQL


                  1 Antwort Letzte Antwort
                  0
                  • sissiwupS Offline
                    sissiwupS Offline
                    sissiwup
                    schrieb am zuletzt editiert von
                    #12

                    Hallo,

                    das "pid = 0" kann man entfernen wenn man seinen Logging Server beibringt pid und syslogtag zu trennen:

                    /etc/rsyslog.d/mysql.conf

                    ### Configuration file for rsyslog-mysql
                    ### Changes are preserved
                    $template dbFormat,"insert into SystemEvents (Message, Facility, FromHost, Priority, DeviceReportedTime, ReceivedAt, InfoUnitID, SysLogTag, processid) values ('%msg%', %syslogfacility%, '%HOSTNAME%
                    ', %syslogpriority%, '%timereported:::date-mysql%', '%timegenerated:::date-mysql%', %iut%, '%syslogtag:R,ERE,1,FIELD:([a-zA-Z\/]+)(\[[0-9]{1,5}\])*:--end%', '%syslogtag:R,ERE,1,BLANK:\[([0-9]{1,5})
                    \]--end%')",sql
                    
                    $ModLoad ommysql
                    *.* :ommysql:localhost,Syslog,rsyslog-mysql,PASSWORT;dbFormat
                    
                    

                    Mysql-User:

                    User: rsyslog-mysql

                    Passwort: PASSWORT

                    MfG

                    Sissi

                    –-----------------------------------------

                    1 CCU3 1 CCU2-Gateway 1 LanGateway 1 Pi-Gateway 1 I7 für ioBroker/MySQL


                    1 Antwort Letzte Antwort
                    0
                    • wendy2702W Online
                      wendy2702W Online
                      wendy2702
                      schrieb am zuletzt editiert von
                      #13

                      Damit ich das richtig verstehe:

                      Bedeutet das iobroker.log wird zusätzlich in Linux SYSLOG geschrieben?

                      Bitte keine Fragen per PN, die gehören ins Forum!

                      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                      1 Antwort Letzte Antwort
                      0
                      • nieIPN Offline
                        nieIPN Offline
                        nieIP
                        schrieb am zuletzt editiert von
                        #14

                        Hallo

                        ich würde das gern morgen mal testen. Wie ist der aktuelle Stand …

                        Muss ich

                         npm install winston-syslog
                        

                        noch ausführen, oder ist das default schon mit installiert?

                        Der Beitrag ist ja schon 2 Jahre alt, daher die Nachfrage.

                        1 Antwort Letzte Antwort
                        0
                        • apollon77A Offline
                          apollon77A Offline
                          apollon77
                          schrieb am zuletzt editiert von
                          #15

                          winston-syslog ist ein optionale dep … musst mal schauen ob es installiert ist oder du es manuell machen musst

                          Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                          • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                          • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                          1 Antwort Letzte Antwort
                          0
                          • P Offline
                            P Offline
                            pid5be0
                            schrieb am zuletzt editiert von
                            #16

                            Moin moin…

                            Da mich das Thema ebenfalls interessiert, wollte ich den Winston-Syslog-Service ebenfalls installieren.

                            Dabei erhielt ich diese Ausgabe. Kann es sein, das ich die Installation nicht von der ROOT des Hosts machen kann?

                            root@debian-iobroker:~# npm install winston-syslog
                            
                            > unix-dgram@0.2.3 install /root/node_modules/unix-dgram
                            > node-gyp rebuild
                            
                            make: Entering directory '/root/node_modules/unix-dgram/build'
                              CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
                              SOLINK_MODULE(target) Release/obj.target/unix_dgram.node
                              COPY Release/unix_dgram.node
                            make: Leaving directory '/root/node_modules/unix-dgram/build'
                            npm WARN saveError ENOENT: no such file or directory, open '/root/package.json'
                            npm notice created a lockfile as package-lock.json. You should commit this file.
                            npm WARN enoent ENOENT: no such file or directory, open '/root/package.json'
                            npm WARN root No description
                            npm WARN root No repository field.
                            npm WARN root No README data
                            npm WARN root No license field.
                            
                            + winston-syslog@2.0.0
                            added 6 packages from 18 contributors and audited 6 packages in 11.999s
                            found 0 vulnerabilities
                            
                            root@debian-iobroker:~#
                            

                            Grüße,

                            Daniel

                            IOBROKER via VM auf QNAP TS453, Unify Network (Switch/WLAN), Hardware Firewall - SIF, Raspberry für Homematic

                            1 Antwort Letzte Antwort
                            0
                            • P Offline
                              P Offline
                              pid5be0
                              schrieb am zuletzt editiert von
                              #17

                              Habe mal die Installation vom iobroker Verzeichnis gemacht.

                              ` > root@debian-iobroker:/opt/iobroker# npm install winston-syslog

                              • winston-syslog@2.0.0

                              added 1 package from 2 contributors, updated 1 package and audited 4794 packages in 39.864s

                              found 52 vulnerabilities (38 low, 14 high)

                              run npm audit fix to fix them, or npm audit for details

                              root@debian-iobroker:/opt/iobroker# npm audit

                              npm ERR! code ELOCKVERIFY

                              npm ERR! Errors were found in your package-lock.json, run npm install to fix them.

                              npm ERR! Missing: iobroker.flot@^1.9.2

                              npm ERR! Missing: iobroker.fritzbox@^0.2.1

                              npm ERR! Missing: iobroker.geofency@^0.3.2

                              npm ERR! Invalid: lock file's iobroker.hm-rega@2.0.1 does not satisfy iobroker.hm-rega@^2.1.2

                              npm ERR! Invalid: lock file's iobroker.hm-rpc@1.8.3 does not satisfy iobroker.hm-rpc@^1.9.1

                              npm ERR! Invalid: lock file's iobroker.iot@0.2.2 does not satisfy iobroker.iot@^0.3.1

                              npm ERR! Invalid: lock file's iobroker.shelly@2.0.2 does not satisfy iobroker.shelly@^2.0.5

                              npm ERR! Missing: iobroker.simple-api@^2.0.0

                              npm ERR! Missing: iobroker.sql@^1.9.2

                              npm ERR! Invalid: lock file's iobroker.type-detector@0.1.0 does not satisfy iobroker.type-detector@file:node_modules/iobroker.type-detector

                              npm ERR! Missing: iobroker.unifi@^0.3.1

                              npm ERR! Missing: iobroker.web@^2.4.1

                              npm ERR! Invalid: lock file's winston-syslog@1.2.6 does not satisfy winston-syslog@^2.0.0

                              npm ERR! A complete log of this run can be found in:

                              npm ERR! /root/.npm/_logs/2019-01-14T05_26_12_350Z-debug.log `

                              @pid5be0:

                              Moin moin…

                              Da mich das Thema ebenfalls interessiert, wollte ich den Winston-Syslog-Service ebenfalls installieren.

                              Dabei erhielt ich diese Ausgabe. Kann es sein, das ich die Installation nicht von der ROOT des Hosts machen kann?

                              root@debian-iobroker:~# npm install winston-syslog
                              
                              > unix-dgram@0.2.3 install /root/node_modules/unix-dgram
                              > node-gyp rebuild
                              
                              make: Entering directory '/root/node_modules/unix-dgram/build'
                                CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
                                SOLINK_MODULE(target) Release/obj.target/unix_dgram.node
                                COPY Release/unix_dgram.node
                              make: Leaving directory '/root/node_modules/unix-dgram/build'
                              npm WARN saveError ENOENT: no such file or directory, open '/root/package.json'
                              npm notice created a lockfile as package-lock.json. You should commit this file.
                              npm WARN enoent ENOENT: no such file or directory, open '/root/package.json'
                              npm WARN root No description
                              npm WARN root No repository field.
                              npm WARN root No README data
                              npm WARN root No license field.
                              
                              + winston-syslog@2.0.0
                              added 6 packages from 18 contributors and audited 6 packages in 11.999s
                              found 0 vulnerabilities
                              
                              root@debian-iobroker:~#
                              

                              Grüße,

                              Daniel `

                              IOBROKER via VM auf QNAP TS453, Unify Network (Switch/WLAN), Hardware Firewall - SIF, Raspberry für Homematic

                              1 Antwort Letzte Antwort
                              0
                              • apollon77A Offline
                                apollon77A Offline
                                apollon77
                                schrieb am zuletzt editiert von
                                #18

                                Das sieht erstmal ok aus. Ich weiß nur nicht mehr aus dem Kopf ob die 2.0.0 geht oder ob man aktuell die letzte 1.x von der Winston-syslog nehmen muss.

                                Starte iobroker mal neu und konfiguriere es. Dann siehst du es ja

                                Gesendet vom Handy …

                                Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                                • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                                • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                                1 Antwort Letzte Antwort
                                0
                                • nieIPN Offline
                                  nieIPN Offline
                                  nieIP
                                  schrieb am zuletzt editiert von
                                  #19

                                  Hallo

                                  ich habe winston-syslog in /opt/iobroker nach installiert und mich bei der Konfig nach dem obrigen Beispiel gerichtet.

                                  Hat sofort funktioniert.

                                  Danke

                                  1 Antwort Letzte Antwort
                                  0
                                  • M Offline
                                    M Offline
                                    MrLee
                                    schrieb am zuletzt editiert von
                                    #20

                                    Moin!

                                    Genial!!!! Vielen Dank für den Tipp!
                                    Kann ich nur jedem empfehlen der eh eine Syno mit ProtokollCenter laufen hat.

                                    Installation auf beiden Systemen völlig stressfrei.

                                    bis denne
                                    Mr.Lee

                                    1 Antwort Letzte Antwort
                                    0
                                    • ScroungerS Offline
                                      ScroungerS Offline
                                      Scrounger
                                      Developer
                                      schrieb am zuletzt editiert von
                                      #21

                                      Mir ist gerade aufgefallen das mein syslog server die 'warn' Meldungen von ioBroker nicht mitbekommt.
                                      Alle anderen severity levels gehen.

                                      Kann das daran liegen weil der server das level 'Warning' erwartet?
                                      Gibt es eine config Möglichkeit das iobrker aus 'warn' level 'warning' macht?

                                      <a href="https://github.com/Scrounger/ioBroker.linkeddevices">LinkedDevices Adapter</a>

                                      <a href="https://github.com/Scrounger/ioBroker.vis-materialdesign">Material Design Widgets</a>

                                      K 1 Antwort Letzte Antwort
                                      0
                                      • ScroungerS Scrounger

                                        Mir ist gerade aufgefallen das mein syslog server die 'warn' Meldungen von ioBroker nicht mitbekommt.
                                        Alle anderen severity levels gehen.

                                        Kann das daran liegen weil der server das level 'Warning' erwartet?
                                        Gibt es eine config Möglichkeit das iobrker aus 'warn' level 'warning' macht?

                                        K Offline
                                        K Offline
                                        Kueppert
                                        schrieb am zuletzt editiert von
                                        #22

                                        @scrounger hast du hierzu eine Lösung gefunden? Ich hab auch ne SYNO und würde gern starten, das LOG entsprechend bei mir im Protokoll-Server mit aufzuzeichnen.
                                        Danke dir und vG, Thorsten

                                        UDM Pro, Intel NUC - ioBroker in Proxmox-VM, PiHole+Grafana&Influx+TasmoAdmin in LXCs, Raspberry Pi3 (als CCU), Zigbee-Stick Sonoff, Synology DS918+

                                        ScroungerS 1 Antwort Letzte Antwort
                                        0
                                        • K Kueppert

                                          @scrounger hast du hierzu eine Lösung gefunden? Ich hab auch ne SYNO und würde gern starten, das LOG entsprechend bei mir im Protokoll-Server mit aufzuzeichnen.
                                          Danke dir und vG, Thorsten

                                          ScroungerS Offline
                                          ScroungerS Offline
                                          Scrounger
                                          Developer
                                          schrieb am zuletzt editiert von
                                          #23

                                          @kueppert
                                          Ne hab leider keine Lösung dafür gefunden.

                                          <a href="https://github.com/Scrounger/ioBroker.linkeddevices">LinkedDevices Adapter</a>

                                          <a href="https://github.com/Scrounger/ioBroker.vis-materialdesign">Material Design Widgets</a>

                                          A 1 Antwort Letzte Antwort
                                          1
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          785

                                          Online

                                          32.5k

                                          Benutzer

                                          81.6k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe