Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Logging to Syslog


Question

Posted

Hi All,

since quite a while I was looking for a way to create a solid logging mechanism - I actually would want to send the log to a syslog server. 

As there is no remote logging (actually I did not find a real logging at all), I decided to write a scene, which triggers on all the devices and write the log mechanism myself. The "great" idea turned out to be a complete disaster as my HC2 got completely overloaded with a scene, which lists all the devices in the trigger - even my devices got messed up (yes, I had a backup).

Now my questions:

  • Is there a smart way to do remote logging, where I log changes of devices and sensors?
  • If not, is there a way to write a scene, which triggers basically always when there is a status change of a device without having to list the devices and thus crash everything?

 

Or is there any other idea solving my problem?

Thank you

Roger

 

4 answers to this question

Recommended Posts

  • 0
Posted

Hi @rog,

 

I'm still investigating which solution is best, but for devices there is already logging on the HC so wouldn't be easiest way to export HC log to some desired log server by means of API REST functions? For me more important is to have log of events with scenes and VD's when they were triggered and what actions they preformed since that is not logged anywhere.

  • 0
  • Inquirer
  • Posted

    Well, I scanned through the REST API but did not find the logging - I mean, polling the Even Panel could be a strating point, even though I do not like polling at all.

    I just do not understand, why they do not have something linke this.... Is there a way to develop code "low-level"? Obviously the scene is not a good approach :-)

    • 0
    Posted (edited)

    @rog

    Thanks for starting this discussion.... I would also like this capability

    Currently I send a stream to pushover and I get one message per 'trigger'

    I also use a simple logging scene I wrote myself (see my signature) that gathers 1000 characters of 'events' (max no. that HC2 can manage) and dumps them to a single pushover message.

     

    I'm okay with my approach so far as I can check my phone and see whats happening at a glance but I would like a more elegant solution if possible

    Some users have posted solutions to send to thingspeak in a syslog fashion but I'd like to see how I could access this from my phone for a quick check

     

    hopefully others will chime in ...

    Edited by AutoFrank
    • 0
  • Inquirer
  • Posted

    @AutoFrank

    Thank you for your answer. I is a first step in the direction. What I tried to do to start with my approach is actually have already in the Event Panel plus what you do on errors. I do not understand, why we cannot get access to this information. Cannot be THAT hard.

    One approach I am looking at (do not know whether is works currently): I am using an RPi in my network as a syslog forwarder. I found a (German) article showing how to read the logs: 

    Please login or register to see this link.

    I might think about writing a small daemon on my RPi to read the logs hourly and write them into a directory which then is parsed by the syslog daemon.

    Could work but I need to look deeper into it. It is a patch for a missing functionality.

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...