Koozali.org: home of the SME Server

SYSLOG Server

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
SYSLOG Server
« on: May 04, 2007, 12:16:09 AM »
I have an appliance that can write log files to a SYSLOG Server.
I have searched the forums for threads of anyone else setting one up, could not find anything.

Anyone having done this on SMEServer any pointers appreciated.
Thanks.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: SYSLOG Server
« Reply #1 on: May 04, 2007, 10:02:01 AM »
Quote from: "dilligaf"
I have an appliance that can write log files to a SYSLOG Server.
I have searched the forums for threads of anyone else setting one up, could not find anything.

Anyone having done this on SMEServer any pointers appreciated.
Thanks.


Code: [Select]

mkdir -p  /etc/e-smith/templates-custom/etc/sysconfig/syslog/

cp /etc/e-smith/templates/etc/sysconfig/syslog/10NoMARKs

cd  /etc/e-smith/templates-custom/etc/sysconfig/syslog/
pico 10NoMARKs


modify 10NoMARKs this way:

Code: [Select]

# we don't want the MARK ticks
SYSLOGD_OPTIONS="-m 0 -r"


then

Code: [Select]

expand-template /etc/sysconfig/syslog
service syslog restart


et voilĂ .. your Sme server is now a syslog server :-)

HTH
ciao

Stefano

BTW, via search link I've found this:
http://forums.contribs.org/index.php?topic=31322.0

Offline Dirk

  • *
  • 20
  • +0/-0
SYSLOG Server
« Reply #2 on: May 06, 2007, 07:58:52 PM »
Txs i was looking for that!
I have a freenas server and wanted that one logging to my sme.
Works perfectly.

Dirk

Offline Marco Hess

  • *
  • 149
  • +0/-0
    • http://www.through-ip.com
Syslog Howto
« Reply #3 on: May 07, 2007, 06:08:49 AM »
As I have been setting up syslog on my SME servers a number of times, I have added a mini Howto in the Howto category on how I did it:

http://wiki.contribs.org/Syslog

Regards,

Marco
Adelaide - Australia

Offline frenchi6625

  • *
  • 15
  • +0/-0
Re: Syslog Howto
« Reply #4 on: November 13, 2007, 02:37:04 PM »
As I have been setting up syslog on my SME servers a number of times, I have added a mini Howto in the Howto category on how I did it:

http://wiki.contribs.org/Syslog

Regards,

Marco

I follwed this guy's howto but it's not working. How can I undo everything, or can I just try the second poster's suggestion?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Syslog Howto
« Reply #5 on: November 13, 2007, 06:39:53 PM »
I follwed this guy's howto but it's not working. How can I undo everything, or can I just try the second poster's suggestion?

Code: [Select]
cd /etc/e-smith/templates-custom/etc/sysconfig/syslog
rm -f 90AllowRemoteSyslog
expand-template /etc/sysconfig/syslog
service syslog restart

HTH

Ciao

Stefano