Router Logs sent to Syslog - Can I change the location
I have just figured out how to send my DLINK ( DI-704p ) router logs to /var/log/syslog via the syslog server.
What I would like to know, is there a way instead of the router logs going to /var/log/syslog I would like it to go to /var/log/routerlogs. Is this possible and if so how would I go about on doing it?
Thanks for your help...
You could try modifying your /etc/syslog.conf to redirect certain messages based on priority or facility.
Thanks Stickman. I'll try that out.
Off to RTM.
Trying to get my D-Link to send its log to my Linux box
I would like to know what you did to make it work Gnarg.
I have enabled the Syslog server and configured the ip of my linix box, in the D-Link router, but no logs shows up anywhere in /var/log.
Here's what I did to get this working.
In the Router I enabled to send the router logs to my linux box., saved and restarted the router.
I edited /etc/init.d/syslog and /etc/sysconfig/syslog
Look for SYSLOGD_OPTIONS="-m 0" and add -r so it looks like SYSLOGD_OPTIONS="-m 0 -r"
Btw, the -r enables logging from remote machines ( I.E. DLINK Router )
Then I restarted syslog:
sh /etc/init.d/syslog restart
From here all the router logs I notice go into /var/log/messages, /var/log/syslog and /var/log/user.log
I still have not been able to put the router logs in its own place but I like the log to go into user.log since I have other info going there as well.
Hope this helps...
|All times are GMT -5. The time now is 08:11 AM.|