Logs?


#1

Is there a place that I can get the logs other than having a browser open to the logs tab?


#2

Don’t think so.


#3

Device events, hub events, and location events are all available after the fact on their respective pages. What you would be missing are debug/info logs that are only available in the Logs page when it is open.


#4

It would be nice to have a text file or something we can open with excel to sort through.


#5

Sending to an external syslog server would be nice.


#6

Bumping this thread. I've submitted a couple of tickets for what seems to be some problems with .121. Having a browser opened to the log page on a separate machine really helped with the ticket submission. It would be an incredible help to those of us wanting to improve HE to have some way to setup a syslog server. The browser-on-another-machine is an okay workaround, but if a variety of things happen, all that data is lost.


#7

how about a simple nodejs app that connects to the websocket and logs out the messages? then pipe that to a file to troll through later.


Log Hub Events to remote server (syslog)?
#8

Something to start with.. change ip address to your hub ip

const WebSocket = require('ws');

const ws = new WebSocket('ws://192.168.1.172/logsocket');

ws.on('open', function open() {
   // do nothing
});

ws.on('message', function incoming(data) {
  console.log(data);
});

running:

example command to save output to file:
nodejs logCaptureExample.js > hubLogs.txt


Log Hub Events to remote server (syslog)?
Websockets
#9

I've noticed that while the logs are showing, the system doesn't run as fast as when they are not when a lot of logs are coming through. Are the logs pushed synchronously to the browser from the app and device drivers? If so can they be updated to be pushed asynchronously in the future. I've held off on a constant connection for exporting my logs for this reason.


#10

Thanks for pointing that out. It is synchronous, I'll create an issue to update it to async.


#11

Thank you very much. I installed node.js on my Mac and then setup a log rotation for the files. This is great!


#12

I've integrated this with a sumo logic collector - with a free tier license; and it works great; it's allowing me to clean up custom apps and device handlers in a way that I've never been able to do before in 5 yrs of ST use.


#13

Was this updated to async or does it still have the performance impact downside?


#14

See the changelog here