We have moved at community.getvera.com

Author Topic: Syslog to paper trail.com problems  (Read 2006 times)

Offline samyoue

  • Jr. Member
  • **
  • Posts: 67
  • Karma: +6/-6
Syslog to paper trail.com problems
« on: July 06, 2017, 07:32:44 pm »
Hi,

This app is absolutely perfect for what I need, until tonight I had never heard of syslog servers but it is exactly what I need... The only problem is I can't get it working... I've obtained the domain name and port from papertrailapp.com ( a syslog company that seems to offer the services I require without charging the earth every month) and put this into the syslog variable in th event watcher setup page but it only seems to log locally...

Quote from: Paper trail website
Papertrail automatically detects new systems when they begin logging. No additional Papertrail configuration is needed. The same destination can be used by many systems.

The fqdn is this: logsx.papertrailapp.com:xxxxx where X is a number

The site also states
Quote
Accept unrecognized senders
Accepting TCP (TLS), TCP (plain text), UDP

Hopefully I'm missing something obvious and you can point me in the right direction... Or maybe to an alternative syslog provider that definitely works

Thanks,

Sam

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: Syslog to paper trail.com problems
« Reply #1 on: July 07, 2017, 02:27:38 am »
I run syslog locally on another machine, so don't know about remote hosting.

EventWatcher uses UDP datagrams to send data to syslog, which should work to any accessible IP and port.  It's not a firewall problem is it?
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: Syslog to paper trail.com problems
« Reply #2 on: July 07, 2017, 03:01:10 am »
You do need to use the IP number, not the URL, of the website.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline samyoue

  • Jr. Member
  • **
  • Posts: 67
  • Karma: +6/-6
Re: Syslog to paper trail.com problems
« Reply #3 on: July 07, 2017, 03:09:10 am »
Oh i thought it had been updated to allow fqdn... The syslog service only provides the above so unless they give me an ip address to send to,  it won't work?

Also what ports does it need open to send syslog data?

Thanks,

Sam

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: Syslog to paper trail.com problems
« Reply #4 on: July 07, 2017, 03:27:47 am »
Oh i thought it had been updated to allow fqdn... The syslog service only provides the above so unless they give me an ip address to send to,  it won't work?

You're absolutely right!  As of v16.07.01 it should work.  So if you're on the latest, that's OK.

Quote
Also what ports does it need open to send syslog data?

They should provide you with the (in fact, you said they did.). Shouldn't need any port opened at your end, but firewall should allow UDP (should be doing that anyway.)

You ought to be able to look up their IP address and try that if the fqdn doesn't seem to work.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline samyoue

  • Jr. Member
  • **
  • Posts: 67
  • Karma: +6/-6
Re: Syslog to paper trail.com problems
« Reply #5 on: July 07, 2017, 09:36:23 am »
I'm not sure I'm on the latest version or not... I installed the version from the app store and that server out of date so i deleted the device ane reinstalled manually via github files as per your post in another thread and now when i go into device, advanced, variables in version it says this "2014.01.23 @akbooer".....

Sam

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: Syslog to paper trail.com problems
« Reply #6 on: July 07, 2017, 10:45:28 am »
Definitely not the right version.  Should be 2016.11.16.

Files are here: https://github.com/akbooer/EventWatcher
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline samyoue

  • Jr. Member
  • **
  • Posts: 67
  • Karma: +6/-6
Re: Syslog to paper trail.com problems
« Reply #7 on: July 07, 2017, 02:55:59 pm »
Deleted device
Installed new version (create device, implementation = I_EventWatcher.xml, device = D_EventWatcher.xml)
Several luup reloads and a vera reboot

Now getting startup failure... But at least it now says version 16.11.16 lol
If i go into logs it just says  "no handler"....

Thanks for your help and patience lol

Sam
« Last Edit: July 07, 2017, 04:55:07 pm by samyoue »

Offline samyoue

  • Jr. Member
  • **
  • Posts: 67
  • Karma: +6/-6
Re: Syslog to paper trail.com problems
« Reply #8 on: July 08, 2017, 02:59:24 am »
bizarrely I installed the app store version then uninstalled (thinkng it might clear old files) then reinstalled github version... created device... and it started working... until a luup restart... then it comes up lua startup failure again...

Sam

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: Syslog to paper trail.com problems
« Reply #9 on: July 08, 2017, 03:23:32 am »
Uninstall will not delete any files.  It possible, perhaps, that something outdated is lying around.  Vera keeps some files in /etc/cmh-ludl/ and also /etc/cmh-lu/.

How did you install the GitHub files?
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline samyoue

  • Jr. Member
  • **
  • Posts: 67
  • Karma: +6/-6
Re: Syslog to paper trail.com problems
« Reply #10 on: July 08, 2017, 03:57:24 am »
Download zip from github
Unzip on pc
Go to develop apps > luup files, upload files
Reload luup
Create device > I_EventWatcher.xml & D_EventWatcher.xml
Reload luup

Is it worth ssh ing into vera to delete the files?

Sam
« Last Edit: July 08, 2017, 04:07:45 am by samyoue »

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: Syslog to paper trail.com problems
« Reply #11 on: July 08, 2017, 06:24:23 am »
How did you create the new device... manually, or prom the plugins page?
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline samyoue

  • Jr. Member
  • **
  • Posts: 67
  • Karma: +6/-6
Re: Syslog to paper trail.com problems
« Reply #12 on: July 08, 2017, 12:16:45 pm »
Went into
Apps > develop apps > create device
(UI7)

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: Syslog to paper trail.com problems
« Reply #13 on: July 08, 2017, 01:17:18 pm »
So it sounds like you're doing all the right things... just not getting the right result!

From the Develop Apps > Files window, download the EventWatcher.lua file and check that at the top the version matches what you think you downloaded.

Take a look in /etc/cmh-ludl/ and see if any EventWatcher files are in plain text, rather than compressed.  Actually, you may also scan the Files list to see whether there are apparently any duplicates - this may be symptomatic of the same.

I'm sorry this is causing you such problems... seems like we're missing something glaringly obvious, but just can't grasp what that might be.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline samyoue

  • Jr. Member
  • **
  • Posts: 67
  • Karma: +6/-6
Re: Syslog to paper trail.com problems
« Reply #14 on: July 08, 2017, 05:26:45 pm »
I think it must be something I'm doing wrong as I've just tried installing latest version from scratch on another vera (ie no residual files) and getting startup failure in that as well... Ive checked the lua file you mentioned and it says version 16. 11. 16... However i checked L_EventWatcher2.lua and that said "2013.12.28  @akbooer" maybe that's where I'm going wrong? Just off to check github now for a more up to date file

Sam