more G-Labs products

Author Topic: Send HG logs to syslog server  (Read 714 times)

January 05, 2016, 09:51:19 AM
Read 714 times

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
Hi!

I have a syslog server (Syslog watcher 4). Is that possible to send HG logs to syslog server?

And I use HG on Ubuntu 15 linux.
« Last Edit: January 05, 2016, 09:56:06 AM by KaZe »

January 05, 2016, 11:38:40 PM
Reply #1

Void

  • *
  • Information
  • Newbie
  • Posts: 18
You can do this:

1) Enable Log File in HG configuration
2) Forward the log file to the remote syslog using syslog-ng

Log file is located in /usr/local/bin/homegenie/log -> homegenie.log
To read and forward the file to syslog (or remote syslog) look this guide:

http://www.syslog.org/logged/reading-logs-from-a-file-in-syslog-ng/

I'm using this in Debian, but also applies to Ubuntu :)

January 06, 2016, 03:23:36 PM
Reply #2

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
You can do this:

1) Enable Log File in HG configuration
2) Forward the log file to the remote syslog using syslog-ng

Log file is located in /usr/local/bin/homegenie/log -> homegenie.log
To read and forward the file to syslog (or remote syslog) look this guide:

http://www.syslog.org/logged/reading-logs-from-a-file-in-syslog-ng/

I'm using this in Debian, but also applies to Ubuntu :)


Thanks for help!
I was able to configure it :) Works fine.