Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

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

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    16
    1
    1.6k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    864

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.1k

Iobroker Logging zu syslog

Scheduled Pinned Locked Moved ioBroker Allgemein
26 Posts 11 Posters 6.8k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ScroungerS Offline
    ScroungerS Offline
    Scrounger
    Developer
    wrote on last edited by
    #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?

    K 1 Reply Last reply
    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
      wrote on last edited by
      #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 Reply Last reply
      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
        wrote on last edited by
        #23

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

        A 1 Reply Last reply
        1
        • ScroungerS Scrounger

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

          A Offline
          A Offline
          Aiouh
          wrote on last edited by Aiouh
          #24

          Ist zwar schon alt der Fred, aber ich denke SysLog ist nach wie vor für den ein oder Anderen von Interesse, also fasse ich das mal zusammen.
          Ich logge alle Syslogs meiner Systeme auf einem Synology NAS mit LogCenter, daher wollte ich den ioBroker auch dort mit drin sehen.
          Das waren bei mir die dazu erforderlichen Schritte:

          sudo npm install winston-syslog
          

          dann

          sudo nano /opt/iobroker/iobroker-data/iobroker.json
          

          In der Datei die Zeilen 4 und 5 entsprechend mit "true" und der IP eures Syslog Servers anpassen und die Zeilen 7 und 9 einfügen

           },
                "syslog1": {
                  "type": "syslog",
                  "enabled": true,
                  "host": "192.168.178.85",
                  "hostComment": "The host running syslogd, defaults to localhost.",
                  "port":        "514",
                  "portComment": "The port on the host that syslog is running on, default$
                  "pid":         "0",
                  "protocol":    "udp4",
                  "protocolComment": "The network protocol to log over (e.g. tcp4, udp4, $
                  "pathComment": "The path to the syslog dgram socket (i.e. /dev/log or /$
                  "facilityComment": "Syslog facility to use (Default: local0).",
                  "localhost": "iobroker",
                  "localhostComment": "Host to indicate that log messages are coming from$
                  "sysLogTypeComment": "The type of the syslog protocol to use (Default: $
                  "app_nameComment": "The name of the application (Default: process.title$
                  "eolComment": "The end of line character to be added to the end of the $
                }
          
          

          Im Synololgy NAS LogCenter, "Achive Settings" setzen

          109cd916-2da0-4bac-9743-5f62df216570-image.png

          und unter "Log Receiving" eine Regel anlegen,
          d380e26d-c609-4fbd-a319-5df1c43fc4bb-image.png

          Den ioBroker neu starten

          iobroker restart
          
          

          Das war es schon, das LogCenter in der Syno bekommt jetzt die Meldungen vom iobroker, auch die Warnungen

          1e6c60e5-001f-4aa8-948c-48c0dba797dd-image.png

          @apollon77 weisst Du ob damit das gesamte logging vom ioBroker auf den syslog server verschoben wird, oder ist das syslog quasi doppelt, d.h. der ioBroker logged selbst immern noch auch lokal?

          apollon77A 1 Reply Last reply
          1
          • A Aiouh

            Ist zwar schon alt der Fred, aber ich denke SysLog ist nach wie vor für den ein oder Anderen von Interesse, also fasse ich das mal zusammen.
            Ich logge alle Syslogs meiner Systeme auf einem Synology NAS mit LogCenter, daher wollte ich den ioBroker auch dort mit drin sehen.
            Das waren bei mir die dazu erforderlichen Schritte:

            sudo npm install winston-syslog
            

            dann

            sudo nano /opt/iobroker/iobroker-data/iobroker.json
            

            In der Datei die Zeilen 4 und 5 entsprechend mit "true" und der IP eures Syslog Servers anpassen und die Zeilen 7 und 9 einfügen

             },
                  "syslog1": {
                    "type": "syslog",
                    "enabled": true,
                    "host": "192.168.178.85",
                    "hostComment": "The host running syslogd, defaults to localhost.",
                    "port":        "514",
                    "portComment": "The port on the host that syslog is running on, default$
                    "pid":         "0",
                    "protocol":    "udp4",
                    "protocolComment": "The network protocol to log over (e.g. tcp4, udp4, $
                    "pathComment": "The path to the syslog dgram socket (i.e. /dev/log or /$
                    "facilityComment": "Syslog facility to use (Default: local0).",
                    "localhost": "iobroker",
                    "localhostComment": "Host to indicate that log messages are coming from$
                    "sysLogTypeComment": "The type of the syslog protocol to use (Default: $
                    "app_nameComment": "The name of the application (Default: process.title$
                    "eolComment": "The end of line character to be added to the end of the $
                  }
            
            

            Im Synololgy NAS LogCenter, "Achive Settings" setzen

            109cd916-2da0-4bac-9743-5f62df216570-image.png

            und unter "Log Receiving" eine Regel anlegen,
            d380e26d-c609-4fbd-a319-5df1c43fc4bb-image.png

            Den ioBroker neu starten

            iobroker restart
            
            

            Das war es schon, das LogCenter in der Syno bekommt jetzt die Meldungen vom iobroker, auch die Warnungen

            1e6c60e5-001f-4aa8-948c-48c0dba797dd-image.png

            @apollon77 weisst Du ob damit das gesamte logging vom ioBroker auf den syslog server verschoben wird, oder ist das syslog quasi doppelt, d.h. der ioBroker logged selbst immern noch auch lokal?

            apollon77A Offline
            apollon77A Offline
            apollon77
            wrote on last edited by
            #25

            @aiouh also das npm install von Winston-syslog hätte an sich nicht nötig sein sollen und du hast jetzt ein extraneous Paket. Sollte jetzt aber kein Beinbruch sein.

            Sonst schau ins iobroker.json. Da ist definiert welches logging aktiv ist. Wenn du unter log bei „file“ nichts geändert hast loggt er jetzt beides. Im zweifel kannst du file noch ausschalten.

            Ansonsten geht die konfig inzwischen auch per Admin unter „hosts“. Da muss keiner mehr ans json file. Aber es geht beides.

            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
            A 1 Reply Last reply
            1
            • apollon77A apollon77

              @aiouh also das npm install von Winston-syslog hätte an sich nicht nötig sein sollen und du hast jetzt ein extraneous Paket. Sollte jetzt aber kein Beinbruch sein.

              Sonst schau ins iobroker.json. Da ist definiert welches logging aktiv ist. Wenn du unter log bei „file“ nichts geändert hast loggt er jetzt beides. Im zweifel kannst du file noch ausschalten.

              Ansonsten geht die konfig inzwischen auch per Admin unter „hosts“. Da muss keiner mehr ans json file. Aber es geht beides.

              A Offline
              A Offline
              Aiouh
              wrote on last edited by
              #26

              @apollon77 Ok danke, wieder was gelernt.

              1 Reply Last reply
              1
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              Support us

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

              851

              Online

              32.6k

              Users

              82.1k

              Topics

              1.3m

              Posts
              Community
              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
              ioBroker Community 2014-2025
              logo
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Home
              • Recent
              • Tags
              • Unread 0
              • Categories
              • Unreplied
              • Popular
              • GitHub
              • Docu
              • Hilfe