LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-28-2004, 08:43 AM   #1
Gnarg
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Gentoo Linux
Posts: 44

Rep: Reputation: 15
Router Logs sent to Syslog - Can I change the location


Hello all,

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...



Gnarg
 
Old 07-28-2004, 08:59 AM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
You could try modifying your /etc/syslog.conf to redirect certain messages based on priority or facility.
 
Old 07-29-2004, 08:32 AM   #3
Gnarg
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Gentoo Linux
Posts: 44

Original Poster
Rep: Reputation: 15
Thanks Stickman. I'll try that out.

Off to RTM.

Gnarg
 
Old 08-10-2004, 09:06 AM   #4
Arnefar
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
Trying to get my D-Link to send its log to my Linux box

Hello

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.

Arnefar
 
Old 08-10-2004, 09:24 AM   #5
Gnarg
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Gentoo Linux
Posts: 44

Original Poster
Rep: Reputation: 15
Hi Arnefar,

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...

Gnarg
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
syslog-ng doen't generating logs emailssent Linux - Newbie 3 03-09-2005 05:44 AM
Guarddog logs in syslog short101 Linux - Security 3 01-06-2005 01:31 AM
location of apt-get logs theoldman Fedora 1 05-17-2004 08:02 PM
Where're location for syslog servers. phanlopc Linux - Networking 0 10-15-2003 10:38 PM
Getting logs from a remote syslog ganninu Linux - Newbie 4 09-10-2003 09:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration