[APP][Pro] Simple (Sys) LOG - Use this app for Simple (Sys) Logging

  • some kind of dedicated log viewer (either on iOS and iPadOS or web app) that is one tap away from my Home Screen / desktop
    :white_check_mark: you can use the HTML page, post #321, by @To_Lou :
    https://community.homey.app/t/77533/321

  • I can re-size the text in the logs
    :white_check_mark: ctrl + and crtl -

  • controls available to filter / sort / navigate the logs
    → ctrl f filters on text, but no sort, and navigate is just scrolling up/down :face_with_hand_over_mouth:

  • :white_check_mark: ‘live’ so that as new logs are added they appear in view without having to hit refresh
    → Firefox has an ‘Auto Tab reload’ add-on.

  • connects directly to the Homey so I’m not reliant on another cloud service (could use Tailscale or similar to access remotely)
    :white_check_mark: Yup, it uses the API like this:
    http://192.168.1.123/api/app/nl.nielsdeklerk.log/

Not exactly what you had in mind, but it’s pretty much available already.
Have fun with it.

2 Likes

Sounds very much like a SysLog-server.
This app can send logs to a syslog server, then you just needs to install a viewer watching it.

That sounds promising. Can you recommend any syslog server / viewer?

Thank you @Peter_Kawa i did have a quick play with that and managed to get it working. I wanted to see if I was missing some more obvious solution before I dived deeper.

This made me wonder: I think maybe the settings page in the Simple log app is html running on Homey. Is there a way that interface could be accessed directly from a browser on the local network @Arie_J_Godschalk?

1 Like

I do not remember the name of the one we are using at work, but just google it. There are many.

I have searched and searched and struggled to find anything that looks like it would do what I need and that I can understand. The closest, which looks like I would only have to sacrifice my cloud dependency requirement, is papertrailapp.com. But I cannot find how to configure Simple LOG app on Homey to send logs to it. Here’s what I’ve tried:

  • added a syslog client device in Homey using the Simple LOG app
  • configured its app settings with:
    – server: logs2.papertrailapp.com
    – port: xxxxx (I put the port provided in paper trail log destination setup for my account here)
    – Use Rfc5424: Yes (I also tried No; it didn’t seem to make a difference)
    – This App name: Homey
    – This hostname: 48Homey
    – Log all Syslogs to the default Simple Log: Yes
    – Log all default logs to this Syslog from live: Debug
    – Transport mode: tcp

I then executed this card in an advanced flow:

Result: no events received by Papertrail.

If anyone can offer any suggestions to get this working, I would be very grateful.

Thanks

EDIT: I should also say, here’s how I configured my log destination at papertrailapp:

OK for anyone following after me trying to get Papertrail working, I finally managed to get this working after trying pretty much every combination of settings one by one. The key seemed to be when I changed the advanced settings of the Syslog client device in Homey to use UDP instead of TCP as its transport mode. No idea why this worked but it’s now sending logs to Papertrail happily with all the other settings as above.

3 Likes

Hello, I tried to get this working, but with the http/ftp server, i got NO flowcard (HomeyPro2023).
How can i export the log files automatically to a local server??

Hey @Arie_J_Godschalk ,

I ran the script v1.0.6, and it made a card for every “description/notice” and “any/all” i have. Is it possible to avoid this?

image

image