Setup and test syslog

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
fizikz
DD-WRT User


Joined: 10 Nov 2016
Posts: 265

PostPosted: Tue Dec 06, 2016 19:29    Post subject: Setup and test syslog Reply with quote
I've been getting random reboots on my WAP with dd-wrt so I want some clues as to what's going on. The WAP has Syslogd enabled, but its logs get wiped after each reboot.

I would like to setup a remote server. In dd-wrt under Services -> Remote Server (for system log) I put the IP of my computer, which is static. On my computer, running Ubuntu, there is rsyslog. I believe the configuration is to be set in /etc/rsyslog.d/50-default.conf. Would adding a line like this be correct?

Code:
"ip-of-ddwrt-wap"   /var/log/ddwrt.log


Also how can I quickly test if it's working (aside from rebooting the WAP)?
Sponsor
ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 2319
Location: Canada

PostPosted: Wed Dec 07, 2016 4:30    Post subject: Not a DD-WRT issue Reply with quote
This is not actually a dd-wrt issue but I did find a possible solution, note I do not personally run an Ubuntu box, so I did not test it. http://askubuntu.com/questions/53910/how-can-i-receive-syslog-logs-from-a-networked-system
_________________
Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.
QCA Best WiFi Settings


Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one.

Atheros:
Netgear R7800 x3 - WDS AP / station, gateway, QoS
TP-Link Archer C7 v2 x2 - WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - NU
D-Link 615 C1/E3/I1 x 7 - 1 WDS station
D-Link 825 B1 - NU
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - NU
UBNT loco M2 x2 - airOS

Broadcom
Linksys EA6400 - Gateway, QoS
Asus N66U - AP
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - switch
fizikz
DD-WRT User


Joined: 10 Nov 2016
Posts: 265

PostPosted: Wed Dec 07, 2016 7:07    Post subject: Reply with quote
It's not specific to ddwrt, but something that (linux) users might encounter.

So, along with the advice from the link above to uncomment the following lines in /etc/rsyslog.conf:

Code:
#$ModLoad imudp
#$UDPServerRun 514


I also made a new file /etc/rsyslog.d/10-custom.conf with the lines:

Code:
#save messages from TP-Link TL-WR841N
if $fromhost-ip == '192.168.2.2' then /var/log/WR841N.log
& stop


which redirects logging from the WAP's IP (192.168.2.2) to it's own file on the remote syslog server, and prevents further processing by rsyslog (& stop). Tips from: http://www.rsyslog.com/storing-messages-from-a-remote-system-into-a-specific-file/
and
http://askubuntu.com/questions/186592/how-do-i-configure-rsyslog-to-send-logs-from-a-specific-program-to-a-remote-sysl

It works. Smile
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum