It is currently Tue Apr 16, 2024 1:36 pm

All times are UTC - 7 hours [ DST ]

Recent News:



Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: Tue Jan 19, 2010 12:07 am 
Offline
.5TB storage
.5TB storage

Joined: Fri Nov 27, 2009 11:28 pm
Posts: 12
Thanks: 0
Thanked: 2 times in 1 post
Hi guys, I'm writing a simple syslog addin...It will be pretty simplistic for v1, but better than nothing imho....I've attached a screenshot of what it looks like right now (with sample data of course). One thing I need is some syslog samples from different devices. By default it will just display the entire syslog entry, which works but isnt very pretty...so I'd like to explicitly support as many devices/formats as possible....so if you guys feel like hooking me up with some sample lines from your syslogs I'd appreciate it....thx


Attachments:
syslog.jpg
syslog.jpg [ 249.2 KiB | Viewed 16809 times ]
Top
 Profile  
Thanks  
The following user would like to thank redec for this post
Cougar, yakuza

Attention Guest: Remove this ad by Registering with the MediaSmartServer.net Forums. It's Free!
PostPosted: Tue Jan 19, 2010 12:24 pm 
Offline
2.0TB storage
2.0TB storage
User avatar

Joined: Tue Apr 28, 2009 2:55 pm
Posts: 162
Location: Toronto, Canada
Thanks: 6
Thanked: 29 times in 24 posts
Great idea for a addin. Below is an example of my router's syslog file showing dropped and accepted traffic. It would be nice to have the addin show some statistics and analysis info as well.


Attachments:
SYSLOGD.JPG
SYSLOGD.JPG [ 203 KiB | Viewed 16790 times ]
Top
 Profile  
Thanks  
PostPosted: Tue Jan 19, 2010 10:02 pm 
Offline
.5TB storage
.5TB storage

Joined: Fri Nov 27, 2009 11:28 pm
Posts: 12
Thanks: 0
Thanked: 2 times in 1 post
jumran wrote:
Great idea for a addin. Below is an example of my router's syslog file showing dropped and accepted traffic. It would be nice to have the addin show some statistics and analysis info as well.


awesome, thanks....yeah I hope to eventually add stats/analysis but I don't think it'll make it into version 1 :P....just for informational purposes, what make of router is that log from?


Top
 Profile  
Thanks  
PostPosted: Wed Jan 20, 2010 10:45 am 
Offline
2.0TB storage
2.0TB storage
User avatar

Joined: Tue Apr 28, 2009 2:55 pm
Posts: 162
Location: Toronto, Canada
Thanks: 6
Thanked: 29 times in 24 posts
Router was a linksys WRT150N running DD-WRT which adds the logging features. Logs from any DD-WRT firmware based router would look the same.


Top
 Profile  
Thanks  
PostPosted: Sun Jan 24, 2010 10:04 pm 
Offline
.5TB storage
.5TB storage

Joined: Fri Nov 27, 2009 11:28 pm
Posts: 12
Thanks: 0
Thanked: 2 times in 1 post
beta 1 is available here if anyone's interested: http://www.virgeweb.com/redec/syslog/RedecSyslog0.1.msi

Bug reports/feature requests/suggestions are welcome


Top
 Profile  
Thanks  
PostPosted: Mon Feb 01, 2010 2:48 pm 
Offline
.5TB storage
.5TB storage

Joined: Fri Jan 22, 2010 12:13 pm
Posts: 24
Location: West Sussex, UK
Thanks: 0
Thanked: 1 time in 1 post
I gave this a go with data from my NetGear DG834PN router. The router sent a single message "2010-02-01 20:27:58 - Send E-mail Success!" to the WHS and RedecSyslog0.1 did pick this up but the console window I was using to view via RDP then ended unexpectedly. I tried this 3 or 4 times but it crashed out each time. The event log showed: -

.NET Runtime 2.0 Error Reporting EventID 5000 EventType clr20r3, P1 homeserverconsole.exe, P2 6.0.0.0, P3 4acceb5f, P4 whscommon, P5 6.0.0.0, P6 4accead8, P7 334, P8 1b, P9 system.argumentexception, P10 NIL.

and

HPAdminConsole:
Only one usage of each socket address (protocol/network address/port) is normally permitted
Exception:System.Net.Sockets.SocketException
Message:Only one usage of each socket address (protocol/network address/port) is normally permitted
Source:System
StackTrace:
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at System.Net.Sockets.TcpListener.Start(Int32 backlog)
at System.Net.Sockets.TcpListener.Start()
at System.Runtime.Remoting.Channels.ExclusiveTcpListener.Start(Boolean exclusiveAddressUse)
at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StartListening(Object data)
at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.SetupChannel()
at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider, IAuthorizeRemotingConnection authorizeCallback)
at System.Runtime.Remoting.Channels.Tcp.TcpChannel..ctor(IDictionary properties, IClientChannelSinkProvider clientSinkProvider, IServerChannelSinkProvider serverSinkProvider)
at Microsoft.HomeServer.HomeServerConsoleTab.HPConsoleTab.HomeServerTabExtender.RegisterTcpChannel()

Hope this helps.


Top
 Profile  
Thanks  
PostPosted: Mon Feb 01, 2010 9:38 pm 
Offline
.5TB storage
.5TB storage

Joined: Fri Nov 27, 2009 11:28 pm
Posts: 12
Thanks: 0
Thanked: 2 times in 1 post
ooooh that ain't good. I know this sounds typical but have you tried rebooting? There are some known issue with HPAdminConsole crashing with socket-related excpetions (see http://tinyurl.com/yac4j9q)...altho I haven't seen your exact error before...
I'm really not sure how the syslog could be related to this error, because the stack trace shows it failing while trying to open a tcp socket, and the syslogger doesn't use any tcp sockets...it only uses udp.


Top
 Profile  
Thanks  
PostPosted: Tue Feb 02, 2010 12:12 pm 
Offline
.5TB storage
.5TB storage

Joined: Fri Jan 22, 2010 12:13 pm
Posts: 24
Location: West Sussex, UK
Thanks: 0
Thanked: 1 time in 1 post
Thanks for the suggestion. I reinstalled RedecSyslog0.1 and rebooted but ended up with the same:

NET Runtime 2.0 Error Reporting EventID 5000
EventType clr20r3, P1 homeserverconsole.exe, P2 6.0.0.0, P3 4acceb5f, P4 whscommon, P5 6.0.0.0, P6 4accead8, P7 334, P8 1b, P9 system.argumentexception, P10 NIL.

I uninstalled and reinstalled a couple of times but no luck. The add-in is stable when there is no data to display but as soon as it has some messages to display and I go to the Syslog tab - bang. The first time after install it shows two lines of syslog messages before it crashes but only displays one line with the first two fields on subsequent attempts.


Top
 Profile  
Thanks  
PostPosted: Wed Feb 17, 2010 10:06 pm 
Offline
.5TB storage
.5TB storage

Joined: Fri Nov 27, 2009 11:28 pm
Posts: 12
Thanks: 0
Thanked: 2 times in 1 post
Beta 2 is out: http://www.virgeweb.com/redec/syslog/RedecSyslog0.2.msi ...Now it's (hopefully) actually somewhat usable :)

WakeyWakey: I'm not sure I've fixed the crash you were seeing with Beta1, but I've added some more robust error reporting so hopefully if it's still there we should be able to track it down fairly easily


Attachments:
syslog02.png
syslog02.png [ 192.27 KiB | Viewed 16559 times ]
Top
 Profile  
Thanks  
PostPosted: Thu Feb 18, 2010 3:06 pm 
Offline
.5TB storage
.5TB storage

Joined: Fri Jan 22, 2010 12:13 pm
Posts: 24
Location: West Sussex, UK
Thanks: 0
Thanked: 1 time in 1 post
Thanks! I've loaded 0.2 and quickly tested and it looks good. 4 lines collected, no crash. I'll let it collect a bit more and send the sample.


Top
 Profile  
Thanks  
PostPosted: Fri Feb 19, 2010 6:14 pm 
Offline
.5TB storage
.5TB storage

Joined: Fri Jan 22, 2010 12:13 pm
Posts: 24
Location: West Sussex, UK
Thanks: 0
Thanked: 1 time in 1 post
RedecSyslog0.2 looks good. Here is a sample from my NetGear DG834PN router. As you can see, someone or thing in China wants to get at my MSS and won't give up!


Attachments:
RedecSyslog0.2.png
RedecSyslog0.2.png [ 273.6 KiB | Viewed 16528 times ]
Top
 Profile  
Thanks  
PostPosted: Thu Mar 04, 2010 5:43 am 
Offline
.5TB storage
.5TB storage

Joined: Fri Jan 22, 2010 12:13 pm
Posts: 24
Location: West Sussex, UK
Thanks: 0
Thanked: 1 time in 1 post
Works nicely. Helps me spot attempts to hack wireless router without me having to trawl through daily status emails. Thank you. Left donation.


Top
 Profile  
Thanks  
PostPosted: Mon Mar 15, 2010 1:56 pm 
Offline
.5TB storage
.5TB storage

Joined: Fri Nov 27, 2009 11:28 pm
Posts: 12
Thanks: 0
Thanked: 2 times in 1 post
WakeyWakey wrote:
Works nicely. Helps me spot attempts to hack wireless router without me having to trawl through daily status emails. Thank you. Left donation.


Good to hear, and thanks for the donation...you're my first one :)


Top
 Profile  
Thanks  
PostPosted: Mon Apr 19, 2010 6:40 pm 
Offline
.5TB storage
.5TB storage

Joined: Tue Mar 23, 2010 1:09 pm
Posts: 15
Location: Finland
Thanks: 4
Thanked: 4 times in 3 posts
Here is a screenshot from me, version 0.2. (And this is my first post here :shock: )
Attachment:
File comment: Screenshot
foo.jpg
foo.jpg [ 180.38 KiB | Viewed 16349 times ]

Source 10.72.0.1 is my router (D-Link DIR-825)
Source 10.72.0.2 is my switch (HP ProCurve 1810G-8)

Both were set to send "INFO" level to syslog, so there is plenty of logged lines (and uninteresting crap too). Some public IP addresses have been blurred to "protect the innocent". :mrgreen:

This looks really promising!

Small donation is on it's way. 8)


Top
 Profile  
Thanks  
PostPosted: Sat Sep 18, 2010 11:22 am 
Offline
Newbie
Newbie

Joined: Sat Sep 18, 2010 11:19 am
Posts: 1
Thanks: 0
Thanked: 0 time in 0 post
I've been looking for something to enable syslog monitoring on WHS and this looks pretty good. I can't find any indication that it's gone past beta 2 or anything for the past several months. Is there any sort of status update?

Thank you.

Peter


Top
 Profile  
Thanks  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group