Koozali.org: home of the SME Server

Export Syslog to remote server

Offline fredox27

  • *
  • 18
  • +0/-0
Export Syslog to remote server
« on: December 28, 2012, 03:29:16 PM »
Hello,

I want to export all my SME Server logs into my Synology DS.
Where can i configure it ? IP and port ?

Thanks in advance.




Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Export Syslog to remote server
« Reply #1 on: December 29, 2012, 10:16:32 AM »
SME is a linux... anything is on a file.
IF you search for syslog on these forum/wiki you'll find out this:
http://wiki.contribs.org/Syslog

This page tell you how to configure your sme server to receive logs from anything on network.
So it points you to what file to modify to change syslog configuration.
Google is your friend about how to change syslog configuration for your needs.

Good luck.

Jáder
...

Offline mmccarn

  • *
  • 2,652
  • +10/-0
Re: Export Syslog to remote server
« Reply #2 on: December 29, 2012, 08:48:25 PM »
There are several different mechanisms used to create logfiles on SME:
- syslog
- multilog (for most of the supervised sme services)
- other  (apache logs, for example).

I think you'll have quite a bit of difficulty sending all logs to another host.

One option that occurs to me (which may not work at all, and may break your SME server for all I know) would be to make /var/log a mount to an nfs share on your synology...

I don't suppose you'd be willing to simply rsync your logs to the synology every 15 minutes or so?

Is there a specific log file you want to store on the synology? 

Are you concerned about log file security (eg intruders retroactively editing log files to conceal activity), retention (the amount of time included in historical log information), or disk space on the SME?