Syslog Server ! :-)

A DSM update includes Directory Server, LDAP Client, Remote Folder, Virtual Drive, Syslog Server, Mac OS X Lion Support, Photo Station 5, Google Cloud Print, UPnP Router Support, DSM mobile, CalDAV server, and along with other software enhancements.
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:

https://account.synology.com/support/su ... p?lang=enu



2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
User avatar
Zouk !
Specialist
Specialist
Posts: 1027
Joined: Fri Jun 20, 2008 12:13 pm

Syslog Server ! :-)

Unread post by Zouk ! » Wed Jul 20, 2011 7:29 pm

Hey,

What a good surprise to receive an e-mail from Synology announcing a new DSM ! ;-)
SynoTeam really impress me with these new packages and keeping this incredible DSM update rhythm !
Can't wait to test this syslog server !
It will be SO useful, at least for me. (currently downloading)

Best Regards,
Zouk !
Once you go black, you never go back / DS508 - 5xWD30EZRX00MMMB0 / APC Back-UPS BR 900GI

gd11_be
Enlightened
Enlightened
Posts: 475
Joined: Thu Dec 30, 2010 8:13 am

Re: Syslog Server ! :-)

Unread post by gd11_be » Wed Jul 20, 2011 8:42 pm

Indeed ! The people from Synology area really doing a great effort ! Lots of new features ! :lol: :lol: Excellent !
iMac - 2.8 - i7 - 16GB - Lion / iTouch - 32 GB - iOS 5.0.01
MacBook Air i5 128 GB SSD / MacBook Pro
iPad 16 GB & iPad2 16 GB - iOS 5.0.1
Cambridge Audio Stream Magic / 752 BD / 651R / B&W CM10
Synology DS211 - DSM 5.1- #R2D2 / Synology DS209J - DSM 4.1 - #SkyWalker

User avatar
ZeusII
Knowledgeable
Knowledgeable
Posts: 323
Joined: Thu Jun 28, 2007 11:13 pm
Location: Barcelona, Spain
Contact:

Re: Syslog Server ! :-)

Unread post by ZeusII » Wed Jul 20, 2011 9:39 pm

yeah, I was looking over to setup "manually" a syslog server but hey, this is better.


also it's nice to see the permission control for the vpn service :)
[DS713+ v6.0]
Data storage, SVN, Media Server, Crashplan+, Bittorent (Transmission 2.92)
2 x Western Digital Red WD30EFRX, 3.0TB RAID1
[DS109+ v4.2]
Network Backup Destination
1 x Western Digital Green WD20EARS, 2.0TB

Both protected by APC Back-UPS 500VA :)

User avatar
jekyll
Wizard
Wizard
Posts: 1832
Joined: Thu Feb 28, 2008 7:55 pm
Location: Epworth - UK
Contact:

Re: Syslog Server ! :-)

Unread post by jekyll » Thu Jul 21, 2011 6:17 pm

I've been waiting for syslog for a few years now, works excellent with Cisco SPA942 / APC AP9617 AP9619 AP7920 & AP7921!

Thanks Synology.
Synology DS1010+ 4.3-3827-U8 | DS410 4.3-3827-U7 | DS509+ 4.2-3252 | DS209+ 3.1-1748 | VS80 x 2

APC UPS1500RM2U | APC AP7920 | Linksys SRW224G4P | Linksys SRW224G4 | 802.3af IP cameras x 10

www.jekyll.info

mlourenco
Trainee
Trainee
Posts: 12
Joined: Wed Jan 27, 2010 2:42 pm

Re: Syslog Server ! :-)

Unread post by mlourenco » Thu Jul 21, 2011 9:21 pm

Tested and it works like a charm!

User avatar
rodef
Skilled
Skilled
Posts: 601
Joined: Mon Jan 14, 2008 9:19 pm

Re: Syslog Server ! :-)

Unread post by rodef » Sun Jul 24, 2011 2:05 pm

How do I access the Syslog server? I can't find it in Control Panel and it displays no results when I search in DSM.

EDIT: Found it - it's a Synology Package!
Model: DS508; F/W: DSM 4.0-2265; HDD: 5 x Seagate 1TB ST31000340NS (JBOD; Basic); Link Aggregation: Enabled (Gigabit)
Model: DS212; F/W: DSM 6.1.3-15152(6); HDD: 1 x Seagate 3TB ST3000DM001; 1 x Hitachi 3TB S723030ALA640 (RAID 0)
Camera: IQinVision IQeye 702; Other: Squeezebox Boom and Classic (SSODS 4.9.1 / SBS 7.5.2-31632)

User avatar
Zouk !
Specialist
Specialist
Posts: 1027
Joined: Fri Jun 20, 2008 12:13 pm

Re: Syslog Server ! :-)

Unread post by Zouk ! » Sun Jul 24, 2011 3:04 pm

Now tested,

Working great but SynoTeam, you should consider to add filter to show only relevant events helping to show only events from a source or only for some level (ie tick box level to show or to hide them).
I know that the search function can mostly do this but its a not very convenient compared to a real time filter which still applies when you refresh the log page.

Hope it will be added to final version or for the next one.
 
Once you go black, you never go back / DS508 - 5xWD30EZRX00MMMB0 / APC Back-UPS BR 900GI

nik_c
Beginner
Beginner
Posts: 29
Joined: Tue Feb 22, 2011 1:44 pm

Re: Syslog Server ! :-)

Unread post by nik_c » Fri Aug 26, 2011 11:27 am

Hi, Can i get this syslog package also for my DS211J? When I go to the synology package page, it is not listed as an option there (unless I miss it and it actually not called anythng like syslog server)?

Thanks,
NIk C

User avatar
sjeph8je
Seasoned
Seasoned
Posts: 546
Joined: Fri Jan 29, 2010 10:06 pm
Location: Netherlands

Re: Syslog Server ! :-)

Unread post by sjeph8je » Fri Aug 26, 2011 5:46 pm

You will have to wait until DSM 3.2 is released or install the beta 3.2 to use the new package center which has the syslog package.
DS-218+ (10GB) | DSM 6.2-23739 | 1 x WD20EFRX (Basic-btrfs) (Hyper backup vault, DS, Docker, Tvheadend)
DS-916+ (8GB) | DSM 6.2-23739 | 2 x WD40EFRX (RAID1-btrfs) | 2 x WD10EFRX (RAID1-btrfs) (AS, Calendar, Chat, CMS, Docker, Hyper backup, PS, Snapshot Replication, SVN, VS, WS, Webdav)
  • Startech S3510SMU33 | WD20EFRX (ext-4)
DS-213J | DSM 6.2-23739 | 1 x WD20EFRX (Basic-ext4) (Hyper backup vault)
DS-209 | DSM 6.2-23648

Corruption wears infinite disguises.

mbryanr
Novice
Novice
Posts: 45
Joined: Thu Mar 18, 2010 2:48 pm

Re: Syslog Server ! :-)

Unread post by mbryanr » Thu Sep 01, 2011 4:49 pm

Works great with a unRAID server (which uses Slackware - syslogd, not the newer syslog-ng that the Syno uses). Filter would be a nice addition to the Synology package.

Here is a script for the unRAID if anyone wishes to use it:
http://lime-technology.com/forum/index. ... 5#msg83695
Model: DS210j, FW: Always the latest Drives: Samsung F2 154UI,Raid 1; HP Procure 1410; WDTV Live and Boxee Box; Asus RT-N56U

User avatar
cread
Knowledgeable
Knowledgeable
Posts: 322
Joined: Sat Jan 08, 2011 5:56 am

Re: Syslog Server ! :-)

Unread post by cread » Thu Sep 01, 2011 6:23 pm

does anyone know of a way to have the DS log to it's own syslog server (so that all logs are in one place)?

And

Is there a way to log events in php to a syslog server.\?

I have looked online, but most of the info pertains to a desktop/server install of linux, not the DS and involves a lot of hackery. I do not object to some, but I am trying to keep this to a minimum.

TIA
- Chip
DS916+, DSM 6.1.7-15284 , 2x HGST NAS 4T HDN724040ALE640, USB backup of DS, CyberPower UPS
Apache 2.4,Audio,Calendar,CardDav,Drive,Docker,Doc Viewer,Download,File,Media,Note,Office,Surveillance,Text,VPN,Web,Audio,Photo,Python,Hyper Backup, WebDav, MariaDB, PHP7, (SMB, SSH, FTP)
RT2600ac-1.1.7-6941-1, VPN+ (Web VPN only),
DS211, DSM 6.0.2-8451 Update 6, 2x HGST NAS 4T HDN724040ALE640, USB backup of DS,
PC= Win7, I7-860 Trubo@3.5G, 8G, and 5T HD's installed

dahlb
Trainee
Trainee
Posts: 10
Joined: Tue Sep 13, 2011 12:43 am

Re: Syslog Server ! :-)

Unread post by dahlb » Tue Sep 13, 2011 1:33 am

cread,

add these two lines:

destination d_syno_net { udp("127.0.0.1" port(__SYNO_PORT__)); };
log { source(s_system_local); destination(d_syno_net); flags(flow_control); };

to

/volume1/@appstore/SyslogServer/etc/template/system.conf

and reboot the synology, this assumes your using the udp option if you're using the tcp option just change udp to tcp

User avatar
cread
Knowledgeable
Knowledgeable
Posts: 322
Joined: Sat Jan 08, 2011 5:56 am

Re: Syslog Server ! :-)

Unread post by cread » Wed Sep 14, 2011 4:24 am

dahlb wrote:cread,
add these two lines:
destination d_syno_net { udp("127.0.0.1" port(__SYNO_PORT__)); };
log { source(s_system_local); destination(d_syno_net); flags(flow_control); };
to
/volume1/@appstore/SyslogServer/etc/template/system.conf
and reboot the synology, this assumes your using the udp option if you're using the tcp option just change udp to tcp
Thanks, I was hoping for something a bit less hacky, but once I understand this I will give this a try. The update seems to be a configuration change to the syslog server and not to the DiskStation syslogger itself. Is this correct and if so how does changing the server get the data to the server. Is local logging a feature of the server that Synology just did not enable?
Thanks for any info you can give me. :)
- Chip
DS916+, DSM 6.1.7-15284 , 2x HGST NAS 4T HDN724040ALE640, USB backup of DS, CyberPower UPS
Apache 2.4,Audio,Calendar,CardDav,Drive,Docker,Doc Viewer,Download,File,Media,Note,Office,Surveillance,Text,VPN,Web,Audio,Photo,Python,Hyper Backup, WebDav, MariaDB, PHP7, (SMB, SSH, FTP)
RT2600ac-1.1.7-6941-1, VPN+ (Web VPN only),
DS211, DSM 6.0.2-8451 Update 6, 2x HGST NAS 4T HDN724040ALE640, USB backup of DS,
PC= Win7, I7-860 Trubo@3.5G, 8G, and 5T HD's installed

User avatar
maxxfi
Compiler
Compiler
Posts: 6794
Joined: Sun Dec 27, 2009 12:13 pm
Location: Espoo, Finland

Re: Syslog Server ! :-)

Unread post by maxxfi » Wed Sep 14, 2011 7:50 am

As far as I can see, by default the syslog server has two simple rules:
1. save internal syslog messages to the usual text file /var/log/messages
2. everything coming from UDP port 514 (i.e. standard syslog port) goes to a sqlite database
that you can browse with the package tools, etc.

So it's already managing the internal messages, since when you install the package.

The dahlb's additional rule simply tells that the internal syslog messages
should be also forwarded to local port 514 (so that they are catched by the 2nd rule)
No longer using Synology NAS, moved to more open source solutions.
DS-106j > DS-210j > DS-411

dahlb
Trainee
Trainee
Posts: 10
Joined: Tue Sep 13, 2011 12:43 am

Re: Syslog Server ! :-)

Unread post by dahlb » Thu Oct 13, 2011 12:23 am

Sorry, for taking a while to get back to you, I didn't get any notification about replies from the forum.

cread:
the files in /volume1/@appstore/SyslogServer/etc/template/*
are used to build both
/usr/syno/etc/synosyslog/system.conf and /usr/syno/etc/synosyslog/syslog.d/syno.conf
which is why I had to restart the synology for the change to take affect, otherwise any changes would be lost on restart
local logging to the local server is just a feature synology's default settings don't turn on; if your looking to make more changes you can read about the syntax by googling syslog-ng, that is the server synology is using for their network log server.

maxxfi:
if you configure in the web ui email notifications your logging server will also have this line
log { source(s_syno_net); filter(f_syno_nonemptymsg); filter(f_syno_mail); destination(d_syno_mail); flags(flow_control); };
which emails anything from net to the configured email, the nice thing about the change I did was it now includes any local synology logging gets forwarded to that same email

Locked

Return to “DiskStation Manager 3.2 BETA - 1869”